public class CustomKeyCloakAuthSuccessHandler
extends org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationSuccessHandler
| Constructor and Description |
|---|
CustomKeyCloakAuthSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler fallback,
CustomKeyCloakAuthenticationProvider customKeyCloakAuthenticationProvider) |
| Modifier and Type | Method and Description |
|---|---|
Optional<it.cnr.cool.util.Pair<String,String>> |
authentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication,
boolean cookie) |
String |
getUsernameCNR(org.keycloak.adapters.OidcKeycloakAccount account) |
void |
onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication) |
public static final String SSO
public CustomKeyCloakAuthSuccessHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler fallback,
CustomKeyCloakAuthenticationProvider customKeyCloakAuthenticationProvider)
public String getUsernameCNR(org.keycloak.adapters.OidcKeycloakAccount account)
public Optional<it.cnr.cool.util.Pair<String,String>> authentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication, boolean cookie) throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
throws IOException,
javax.servlet.ServletException
onAuthenticationSuccess in interface org.springframework.security.web.authentication.AuthenticationSuccessHandleronAuthenticationSuccess in class org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationSuccessHandlerIOExceptionjavax.servlet.ServletExceptionCopyright © 2022. All rights reserved.