Class SpringSecurityRequestAuthenticator
- java.lang.Object
-
- org.keycloak.adapters.RequestAuthenticator
-
- org.keycloak.adapters.springsecurity.authentication.SpringSecurityRequestAuthenticator
-
public class SpringSecurityRequestAuthenticator extends RequestAuthenticator
Request authenticator adapter for Spring Security.- Version:
- $Revision: 1 $
- Author:
- Scott Rossillo
-
-
Field Summary
-
Fields inherited from class org.keycloak.adapters.RequestAuthenticator
challenge, deployment, facade, log, sslRedirectPort, tokenStore
-
-
Constructor Summary
Constructors Constructor Description SpringSecurityRequestAuthenticator(HttpFacade facade, javax.servlet.http.HttpServletRequest request, KeycloakDeployment deployment, AdapterTokenStore tokenStore, int sslRedirectPort)Creates a new Spring Security request authenticator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringchangeHttpSessionId(boolean create)protected voidcompleteBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal, String method)protected voidcompleteOAuthAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)protected OAuthRequestAuthenticatorcreateOAuthAuthenticator()-
Methods inherited from class org.keycloak.adapters.RequestAuthenticator
authenticate, completeAuthentication, completeAuthentication, createBasicAuthAuthenticator, createBearerTokenAuthenticator, createQueryParameterTokenRequestAuthenticator, getChallenge, isAutodetectedBearerOnly, verifySSL
-
-
-
-
Constructor Detail
-
SpringSecurityRequestAuthenticator
public SpringSecurityRequestAuthenticator(HttpFacade facade, javax.servlet.http.HttpServletRequest request, KeycloakDeployment deployment, AdapterTokenStore tokenStore, int sslRedirectPort)
Creates a new Spring Security request authenticator.- Parameters:
facade- the currentHttpFacade(required)request- the currentHttpServletRequest(required)deployment- theKeycloakDeployment(required)tokenStore- theAdapterTokenStore (required)sslRedirectPort- the SSL redirect port (required)
-
-
Method Detail
-
createOAuthAuthenticator
protected OAuthRequestAuthenticator createOAuthAuthenticator()
- Specified by:
createOAuthAuthenticatorin classRequestAuthenticator
-
completeOAuthAuthentication
protected void completeOAuthAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)
- Specified by:
completeOAuthAuthenticationin classRequestAuthenticator
-
completeBearerAuthentication
protected void completeBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal, String method)
- Specified by:
completeBearerAuthenticationin classRequestAuthenticator
-
changeHttpSessionId
protected String changeHttpSessionId(boolean create)
- Specified by:
changeHttpSessionIdin classRequestAuthenticator
-
-