Skip to content

Commit

Permalink
Apps: acme-account add support for custom post-logout redirectUri
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdarimont committed Jan 19, 2024
1 parent 1b81a9d commit d3f513e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/acme-account-console/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ <h1>ClientId: <span id="clientInfo"></span></h1>
keycloak.createLogoutUrl = function (options) {
return keycloak.endpoints.logout()
+ '?id_token_hint=' + keycloak.idToken
+ '&post_logout_redirect_uri=' + encodeURIComponent(window.location.href);
+ '&post_logout_redirect_uri=' + encodeURIComponent(options?.redirectUri || window.location.href);
}

let initConfig = {
Expand Down

0 comments on commit d3f513e

Please sign in to comment.