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
ConstructorsConstructorDescriptionKeycloakAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler fallback) -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
onAuthenticationSuccess
-
Constructor Details
-
KeycloakAuthenticationSuccessHandler
public KeycloakAuthenticationSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler fallback)
-
-
Method Details
-
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
-