Class SimpleAuthenticationSuccessHandler
java.lang.Object
com.erudika.para.server.security.SimpleAuthenticationSuccessHandler
Simple handler for successful authentication requests.
- Author:
- Alex Bogdanovski [[email protected]]
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the handler that customizes successful login redirects. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidonAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest arg0, jakarta.servlet.http.HttpServletResponse arg1, jakarta.servlet.FilterChain arg2, org.springframework.security.core.Authentication arg3) voidonAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) voidsetAlwaysUseDefaultTargetUrl(boolean arg0) voidsetDefaultTargetUrl(String arg0) voidsetRedirectStrategy(org.springframework.security.web.RedirectStrategy arg0) voidsetTargetUrlParameter(String arg0) voidsetUseReferer(boolean arg0)
-
Constructor Details
-
SimpleAuthenticationSuccessHandler
public SimpleAuthenticationSuccessHandler()Creates the handler that customizes successful login redirects.
-
-
Method Details
-
onAuthenticationSuccess
public void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
onAuthenticationSuccess
default void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest arg0, jakarta.servlet.http.HttpServletResponse arg1, jakarta.servlet.FilterChain arg2, org.springframework.security.core.Authentication arg3) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
setDefaultTargetUrl
-
setAlwaysUseDefaultTargetUrl
public void setAlwaysUseDefaultTargetUrl(boolean arg0) -
setTargetUrlParameter
-
setRedirectStrategy
public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy arg0) -
setUseReferer
public void setUseReferer(boolean arg0)
-