Class RedirectServerAuthenticationSuccessHandler

java.lang.Object
org.springframework.security.web.server.authentication.RedirectServerAuthenticationSuccessHandler
All Implemented Interfaces:
ServerAuthenticationSuccessHandler

public class RedirectServerAuthenticationSuccessHandler extends Object implements ServerAuthenticationSuccessHandler
Performs a redirect on authentication success. The default is to redirect to a saved request if present and otherwise "/".
Since:
5.0
  • Constructor Details

    • RedirectServerAuthenticationSuccessHandler

      public RedirectServerAuthenticationSuccessHandler()
      Creates a new instance with location of "/"
    • RedirectServerAuthenticationSuccessHandler

      public RedirectServerAuthenticationSuccessHandler(String location)
      Creates a new instance with the specified location
      Parameters:
      location - the location to redirect if the no request is cached in setRequestCache(ServerRequestCache)
  • Method Details