Class KeycloakAuthenticationSuccessHandler
- java.lang.Object
-
- org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationSuccessHandler
-
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler
public class KeycloakAuthenticationSuccessHandler extends Object implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
Wrapper for an authentication success handler that sends a redirect if a redirect URL was set in a cookie.
-
-
Constructor Summary
Constructors Constructor Description KeycloakAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler fallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)
-
-
-
Method Detail
-
onAuthenticationSuccess
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, javax.servlet.ServletException- Specified by:
onAuthenticationSuccessin interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler- Throws:
IOExceptionjavax.servlet.ServletException
-
-