0
votes

We are trying to redirect users to http://destionation.com/home when they logout from Keycloak Account Management page http://localhost:8080/auth/realms/MY_REALM/account/ (screenshot):

Keycloak Account Management

However, it always redirects to http://localhost:8080/auth/realms/KLARA/account/ after signing out. Is there any official way to change that redirect_uri?

Thank you!

1

1 Answers

0
votes

The logoutUrl is built from the base server url (here: http://localhost:8080/auth) :

config.setLogoutEndpoint(frontendUriBuilder.clone().path(OIDCLoginProtocolService.class, "logout").build(realm.getName(), OIDCLoginProtocol.LOGIN_PROTOCOL).toString());

You can't configure a specific url for the logout endpoint in Account Management.

But you can easily create a custom theme and override the logoutUrl value : https://www.keycloak.org/docs/latest/server_development/index.html#_themes