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
ConstructorDescriptionKeycloakAuthenticationSuccessHandler
(org.springframework.security.web.authentication.AuthenticationSuccessHandler fallback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAuthenticationSuccess
(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, wait
Methods 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:
onAuthenticationSuccess
in interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler
- Throws:
IOException
javax.servlet.ServletException
-