mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
Add RedirectAuthenticationSuccessHandler(String)
This commit is contained in:
parent
a0a0a32bda
commit
582a59e583
@ -38,6 +38,12 @@ public class RedirectAuthenticationSuccessHandler implements AuthenticationSucce
|
||||
|
||||
private RedirectStrategy redirectStrategy = new DefaultRedirectStrategy();
|
||||
|
||||
public RedirectAuthenticationSuccessHandler() {}
|
||||
|
||||
public RedirectAuthenticationSuccessHandler(String location) {
|
||||
this.location = URI.create(location);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Mono<Void> success(Authentication authentication, WebFilterExchange webFilterExchange) {
|
||||
ServerWebExchange exchange = webFilterExchange.getExchange();
|
||||
|
Loading…
x
Reference in New Issue
Block a user