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
Dmytro Nochevnov 2018-12-28 14:35:31 +01:00 committed by GitHub
parent b5ee590b20
commit c85ef9e2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 20 deletions

View File

@ -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)",

View File

@ -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",