Skip to content
Snippets Groups Projects
Commit 4e65edee authored by OZGCloud's avatar OZGCloud
Browse files

OZG-1889 realm roles to client roles

parent f157ef3a
No related branches found
No related tags found
No related merge requests found
......@@ -425,8 +425,8 @@ Void generateKeycloakUserYaml(String namespace) {
newUserYaml.spec.user.lastName = userJson.lastName
}
if(userJson.realmRoles) {
newUserYaml.spec.user.realmRoles += userJson.realmRoles
if(userJson.clientRoles) {
newUserYaml.spec.user.clientRoles = [namespace+"-goofy": userJson.clientRoles]
}
if(userJson.groups) {
......
......@@ -6,5 +6,5 @@
"fullName": "Emil Ernst",
"initials": "EE",
"dataTestId": "Emil_Ernst",
"realmRoles": ["EINHEITLICHER_ANSPRECHPARTNER"]
"clientRoles": ["EINHEITLICHER_ANSPRECHPARTNER"]
}
\ No newline at end of file
......@@ -3,5 +3,5 @@
"password": "Y9nk43yrQ_zzIPpfFU-I",
"firstName": "Peter",
"lastName": "von der Post",
"realmRoles": ["VERWALTUNG_POSTSTELLE"]
"clientRoles": ["VERWALTUNG_POSTSTELLE"]
}
\ No newline at end of file
......@@ -6,6 +6,6 @@
"fullName": "Sabine Solala",
"initials": "SS",
"dataTestId": "Sabine_Solala",
"realmRoles": ["VERWALTUNG_USER"],
"clientRoles": ["VERWALTUNG_USER"],
"groups": ["E2E Tests"]
}
\ No newline at end of file
{
"name": "zonk",
"password": "Zonk4Nothing",
"realmRoles": ["VERWALTUNG_USER"]
"clientRoles": ["VERWALTUNG_USER"]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment