Skip to content

Commit

Permalink
Merge pull request #86 from ricardozanini/cloud-3199
Browse files Browse the repository at this point in the history
[CLOUD-3199] - added warn message in case of SSO_SECRET is empty
  • Loading branch information
luck3y committed May 9, 2019
2 parents 95d3ccf + 92a5a14 commit 04eae74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions os-eap-sso/added/keycloak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ function configure_client() {
client_config="${client_config},\"publicClient\":\"false\",\"secret\":\"${SSO_SECRET}\""
client_config="${client_config}}"

if [ -z "$SSO_SECRET" ]; then
log_warning "ERROR: SSO_SECRET not set. Make sure to generate a secret in the SSO/Keycloak client '$module_name' configuration and then set the SSO_SECRET variable."
fi

result=`$CURL -H "Content-Type: application/json" -H "Authorization: Bearer ${token}" -X POST -d "${client_config}" ${sso_service}/admin/realms/${SSO_REALM}/clients`

if [ -n "$result" ]; then
Expand Down

0 comments on commit 04eae74

Please sign in to comment.