public class OidcClientInitiatedServerLogoutSuccessHandler
extends java.lang.Object
implements org.springframework.security.web.server.authentication.logout.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(org.springframework.security.web.server.WebFilterExchange exchange,
org.springframework.security.core.Authentication authentication) |
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(org.springframework.security.web.server.WebFilterExchange exchange,
org.springframework.security.core.Authentication authentication)
onLogoutSuccess in interface org.springframework.security.web.server.authentication.logout.ServerLogoutSuccessHandlerpublic 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".