redirect logout
This commit is contained in:
parent
94637fe6dd
commit
e5394b008e
|
@ -99,7 +99,13 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
|||
}
|
||||
|
||||
private OidcClientInitiatedLogoutSuccessHandler oidcLogoutSuccessHandler() {
|
||||
return new OidcClientInitiatedLogoutSuccessHandler(clientRegistrationRepository);
|
||||
final OidcClientInitiatedLogoutSuccessHandler handler = new OidcClientInitiatedLogoutSuccessHandler(clientRegistrationRepository);
|
||||
// NB:
|
||||
// The same URL must be configured server side:
|
||||
// Manage Clients > Edit Client > Other > Post-Logout Redirect
|
||||
handler.setPostLogoutRedirectUri("{baseUrl}");
|
||||
return handler;
|
||||
|
||||
}
|
||||
|
||||
private OAuth2UserService<OidcUserRequest, OidcUser> oidcUserService() {
|
||||
|
|
Loading…
Reference in New Issue