public class RedirectServerAuthenticationEntryPoint extends java.lang.Object implements ServerAuthenticationEntryPoint
Constructor and Description |
---|
RedirectServerAuthenticationEntryPoint(java.lang.String location)
Creates an instance
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
commence(org.springframework.web.server.ServerWebExchange exchange,
AuthenticationException e)
Initiates the authentication flow
|
void |
setRedirectStrategy(ServerRedirectStrategy redirectStrategy)
Sets the RedirectStrategy to use.
|
void |
setRequestCache(ServerRequestCache requestCache)
The request cache to use to save the request before sending a redirect.
|
public RedirectServerAuthenticationEntryPoint(java.lang.String location)
location
- the location to redirect to (i.e. "/logout-success")public void setRequestCache(ServerRequestCache requestCache)
requestCache
- the cache to redirect to.public reactor.core.publisher.Mono<java.lang.Void> commence(org.springframework.web.server.ServerWebExchange exchange, AuthenticationException e)
ServerAuthenticationEntryPoint
commence
in interface ServerAuthenticationEntryPoint
Mono<Void>
to indicate when the request for authentication is completepublic void setRedirectStrategy(ServerRedirectStrategy redirectStrategy)
redirectStrategy
- the strategy to use. Default is DefaultRedirectStrategy.