Don't hard-code the `che` realm !

Signed-off-by: David Festal <dfestal@redhat.com>
pull/83/head
David Festal 2019-09-10 13:51:29 +02:00 committed by Nick Boldt
parent a24ed3760a
commit 387cbeccd6
1 changed files with 2 additions and 2 deletions

View File

@ -32,5 +32,5 @@ if [ $? -eq 0 ]; then echo "Realm exists"; exit 0; fi \
--uusername admin \
--cclientid broker \
--rolename read-token \
&& CLIENT_ID=$($script get clients -r che -q clientId=broker | sed -n 's/.*"id" *: *"\([^"]\+\).*/\1/p') \
&& $script update clients/$CLIENT_ID -r che -s "defaultRoles+=read-token"
&& CLIENT_ID=$($script get clients -r '$keycloakRealm' -q clientId=broker | sed -n 's/.*"id" *: *"\([^"]\+\).*/\1/p') \
&& $script update clients/$CLIENT_ID -r '$keycloakRealm' -s "defaultRoles+=read-token"