public class RedirectServerAuthenticationSuccessHandler extends java.lang.Object implements ServerAuthenticationSuccessHandler
| Constructor and Description |
|---|
RedirectServerAuthenticationSuccessHandler()
Creates a new instance with location of "/"
|
RedirectServerAuthenticationSuccessHandler(java.lang.String location)
Creates a new instance with the specified location
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Void> |
onAuthenticationSuccess(WebFilterExchange webFilterExchange,
org.springframework.security.core.Authentication authentication)
Invoked when the application authenticates successfully
|
void |
setLocation(java.net.URI location)
Where the user is redirected to upon authentication success
|
void |
setRedirectStrategy(ServerRedirectStrategy redirectStrategy)
The RedirectStrategy to use.
|
void |
setRequestCache(ServerRequestCache requestCache)
Sets the
ServerRequestCache used to redirect to. |
public RedirectServerAuthenticationSuccessHandler()
public RedirectServerAuthenticationSuccessHandler(java.lang.String location)
location - the location to redirect if the no request is cached in
setRequestCache(ServerRequestCache)public void setRequestCache(ServerRequestCache requestCache)
ServerRequestCache used to redirect to. Default is WebSessionServerRequestCache.requestCache - the cache to usepublic reactor.core.publisher.Mono<java.lang.Void> onAuthenticationSuccess(WebFilterExchange webFilterExchange, org.springframework.security.core.Authentication authentication)
ServerAuthenticationSuccessHandleronAuthenticationSuccess in interface ServerAuthenticationSuccessHandlerwebFilterExchange - the exchangeauthentication - the Authenticationpublic void setLocation(java.net.URI location)
location - the location to redirect to. The default is "/"public void setRedirectStrategy(ServerRedirectStrategy redirectStrategy)
redirectStrategy - the strategy to use. Default is DefaultRedirectStrategy.