public class RedirectServerAuthenticationSuccessHandler extends java.lang.Object implements ServerAuthenticationSuccessHandler
Constructor and Description |
---|
RedirectServerAuthenticationSuccessHandler() |
RedirectServerAuthenticationSuccessHandler(java.lang.String location) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
onAuthenticationSuccess(WebFilterExchange webFilterExchange,
Authentication authentication) |
void |
setLocation(java.net.URI location)
Where the user is redirected to upon authentication success
|
void |
setServerRedirectStrategy(ServerRedirectStrategy serverRedirectStrategy)
The RedirectStrategy to use.
|
public RedirectServerAuthenticationSuccessHandler()
public RedirectServerAuthenticationSuccessHandler(java.lang.String location)
public reactor.core.publisher.Mono<java.lang.Void> onAuthenticationSuccess(WebFilterExchange webFilterExchange, Authentication authentication)
onAuthenticationSuccess
in interface ServerAuthenticationSuccessHandler
public void setLocation(java.net.URI location)
location
- the location to redirect to. The default is "/"public void setServerRedirectStrategy(ServerRedirectStrategy serverRedirectStrategy)
serverRedirectStrategy
- the strategy to use. Default is DefaultRedirectStrategy.