Skip to content

Commit

Permalink
Add Ssh Api methods to list of allowed requests signed with machine t…
Browse files Browse the repository at this point in the history
…oken (#14557)

Che-theia SSH plugin uses createPair, getPairs, removePair API methods. Since the methods are not included to the list of allowed request that can be signed with machine token, the ssh plugin doesn't work properly.
  • Loading branch information
vinokurig authored and musienko-maxim committed Sep 17, 2019
1 parent 50f3a00 commit 7a26450
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ protected void configure() {
"stop"));
machineAuthenticatedResources
.addBinding()
.toInstance(new MachineAuthenticatedResource("/ssh", "getPair", "generatePair"));
.toInstance(
new MachineAuthenticatedResource(
"/ssh", "getPair", "generatePair", "createPair", "getPairs", "removePair"));
machineAuthenticatedResources
.addBinding()
.toInstance(
Expand Down

0 comments on commit 7a26450

Please sign in to comment.