Skip to content

Commit b091da3

Browse files
authored
Fix dashboard logout (#3468)
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 ...
1 parent 8561ce6 commit b091da3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/pbenchinacan/load_keycloak.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ CLIENT_CONF=$(curl -si -f -X POST "${KEYCLOAK_HOST_PORT}/admin/realms/${REALM}/c
108108
"directAccessGrantsEnabled": true,
109109
"serviceAccountsEnabled": true,
110110
"enabled": true,
111+
"attributes": {"post.logout.redirect.uris": "'${KEYCLOAK_REDIRECT_URI}'"},
111112
"redirectUris": ["'${KEYCLOAK_REDIRECT_URI}'"]}')
112113

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

0 commit comments

Comments
 (0)