Skip to content

Commit

Permalink
Fix dashboard logout (#3468)
Browse files Browse the repository at this point in the history
PBENCH-1185

Starting relatively recently, Keycloak has a distinct callback URI setting for
"post logout", which I noticed while debugging my Postman configuration on
the staging server. Adding the proper "post logout callback URI" solved the
problem and allowed a clean logout. Then it only took me an hour of searching
to figure out how to specify this in the REST call; to say that it's "not
excessively well documented" is understanding the point ...
  • Loading branch information
dbutenhof authored Jun 19, 2023
1 parent 8561ce6 commit b091da3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/pbenchinacan/load_keycloak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ CLIENT_CONF=$(curl -si -f -X POST "${KEYCLOAK_HOST_PORT}/admin/realms/${REALM}/c
"directAccessGrantsEnabled": true,
"serviceAccountsEnabled": true,
"enabled": true,
"attributes": {"post.logout.redirect.uris": "'${KEYCLOAK_REDIRECT_URI}'"},
"redirectUris": ["'${KEYCLOAK_REDIRECT_URI}'"]}')

CLIENT_ID=$(grep -o -e 'http://[^[:space:]]*' <<< ${CLIENT_CONF} | sed -e 's|.*/||')
Expand Down

0 comments on commit b091da3

Please sign in to comment.