Remove redundant Eclipse Che 'user' role (#12279)
* Don't bind 'user' role to test user Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com> * Remove role 'user' from keycloak Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>6.19.x
parent
b5ee590b20
commit
c85ef9e2ad
|
|
@ -28,20 +28,6 @@
|
|||
"quickLoginCheckMilliSeconds" : 1000,
|
||||
"maxDeltaTimeSeconds" : 43200,
|
||||
"failureFactor" : 30,
|
||||
"roles" : {
|
||||
"realm" : [ {
|
||||
"id" : "419ac854-67fc-441a-b837-81a3aef66040",
|
||||
"name" : "user",
|
||||
"description" : "Eclipse Che user",
|
||||
"scopeParamRequired" : false,
|
||||
"composite" : false,
|
||||
"clientRole" : false,
|
||||
"containerId" : "che"
|
||||
} ],
|
||||
"client" : {
|
||||
"che-public" : [ ]
|
||||
}
|
||||
},
|
||||
"groups" : [ ],
|
||||
"requiredCredentials" : [ "password" ],
|
||||
"passwordPolicy" : "hashIterations(20000)",
|
||||
|
|
|
|||
|
|
@ -110,12 +110,6 @@ public class KeycloakCliClient {
|
|||
format("update users/%s -r che --set email=%s %s 2>&1", userId, email, authPartOfCommand);
|
||||
executor.execute(setEmailCommand);
|
||||
|
||||
String addUserRoleToUserCommand =
|
||||
format(
|
||||
"add-roles -r che --uusername %s --rolename user %s 2>&1",
|
||||
username, authPartOfCommand);
|
||||
executor.execute(addUserRoleToUserCommand);
|
||||
|
||||
String addReadTokenRoleToUserCommand =
|
||||
format(
|
||||
"add-roles -r che --uusername %s --cclientid broker --rolename read-token %s 2>&1",
|
||||
|
|
|
|||
Loading…
Reference in New Issue