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.lang.String postLogoutRedirectUri)
Set the post logout redirect uri template to use.
|
void |
setPostLogoutRedirectUri(java.net.URI postLogoutRedirectUri)
Deprecated.
|
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.ServerLogoutSuccessHandler@Deprecated public void setPostLogoutRedirectUri(java.net.URI postLogoutRedirectUri)
setPostLogoutRedirectUri(String)postLogoutRedirectUri - - A valid URL to which the OP should redirect after
logging out the userpublic void setPostLogoutRedirectUri(java.lang.String postLogoutRedirectUri)
"{baseUrl}"
placeholder, for example:
handler.setPostLogoutRedirectUri("{baseUrl}");
will make so that post_logout_redirect_uri will be set to the base url for
the client application.postLogoutRedirectUri - - A template for creating the
post_logout_redirect_uri query parameterpublic void setLogoutSuccessUrl(java.net.URI logoutSuccessUrl)
logoutSuccessUrl - the url to redirect to. Default is "/login?logout".