From 36b25c41c9ab1d42c21a3a0e76809ed7b1fc40ce Mon Sep 17 00:00:00 2001 From: Igor Vinokur Date: Mon, 16 Sep 2019 11:20:02 +0300 Subject: [PATCH] Add Ssh Api methods to list of allowed requests signed with machine token (#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. --- .../machine/authentication/server/MachineAuthModule.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/multiuser/machine-auth/che-multiuser-machine-authentication/src/main/java/org/eclipse/che/multiuser/machine/authentication/server/MachineAuthModule.java b/multiuser/machine-auth/che-multiuser-machine-authentication/src/main/java/org/eclipse/che/multiuser/machine/authentication/server/MachineAuthModule.java index b2c517be02c4..4a3826dbe28c 100644 --- a/multiuser/machine-auth/che-multiuser-machine-authentication/src/main/java/org/eclipse/che/multiuser/machine/authentication/server/MachineAuthModule.java +++ b/multiuser/machine-auth/che-multiuser-machine-authentication/src/main/java/org/eclipse/che/multiuser/machine/authentication/server/MachineAuthModule.java @@ -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(