public class OidcClientInitiatedServerLogoutSuccessHandler extends java.lang.Object implements ServerLogoutSuccessHandler
ServerLogoutSuccessHandler
Constructor and Description |
---|
OidcClientInitiatedServerLogoutSuccessHandler(ReactiveClientRegistrationRepository clientRegistrationRepository)
Constructs an
OidcClientInitiatedServerLogoutSuccessHandler with the provided parameters |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
onLogoutSuccess(WebFilterExchange exchange,
Authentication authentication)
Invoked after log out was successful
|
void |
setLogoutSuccessUrl(java.net.URI logoutSuccessUrl)
The URL to redirect to after successfully logging out when not originally an OIDC login
|
void |
setPostLogoutRedirectUri(java.net.URI postLogoutRedirectUri)
Set the post logout redirect uri to use
|
public OidcClientInitiatedServerLogoutSuccessHandler(ReactiveClientRegistrationRepository clientRegistrationRepository)
OidcClientInitiatedServerLogoutSuccessHandler
with the provided parametersclientRegistrationRepository
- The ReactiveClientRegistrationRepository
to use to derive
the end_session_endpoint valuepublic reactor.core.publisher.Mono<java.lang.Void> onLogoutSuccess(WebFilterExchange exchange, Authentication authentication)
onLogoutSuccess
in interface ServerLogoutSuccessHandler
exchange
- the exchangeauthentication
- the Authentication
public void setPostLogoutRedirectUri(java.net.URI postLogoutRedirectUri)
postLogoutRedirectUri
- - A valid URL to which the OP should redirect after logging out the userpublic void setLogoutSuccessUrl(java.net.URI logoutSuccessUrl)
logoutSuccessUrl
- the url to redirect to. Default is "/login?logout".