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 Sep 16, 2019
1 parent 4549d77 commit ce12ffb
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 ce12ffb

Please sign in to comment.