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.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(WebFilterExchange exchange, Authentication authentication)
ServerLogoutSuccessHandler
onLogoutSuccess
in interface ServerLogoutSuccessHandler
exchange
- the exchangeauthentication
- the Authentication
@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".