From 582a59e583ae45e32e500ecada621f13dfb8cc37 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 11 Sep 2017 22:52:25 -0500 Subject: [PATCH] Add RedirectAuthenticationSuccessHandler(String) --- .../RedirectAuthenticationSuccessHandler.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webflux/src/main/java/org/springframework/security/web/server/authentication/RedirectAuthenticationSuccessHandler.java b/webflux/src/main/java/org/springframework/security/web/server/authentication/RedirectAuthenticationSuccessHandler.java index 73de5bc1c9..f1ba05da21 100644 --- a/webflux/src/main/java/org/springframework/security/web/server/authentication/RedirectAuthenticationSuccessHandler.java +++ b/webflux/src/main/java/org/springframework/security/web/server/authentication/RedirectAuthenticationSuccessHandler.java @@ -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 success(Authentication authentication, WebFilterExchange webFilterExchange) { ServerWebExchange exchange = webFilterExchange.getExchange();