Class SpringSecurityRequestAuthenticator
java.lang.Object
org.keycloak.adapters.RequestAuthenticator
org.keycloak.adapters.springsecurity.authentication.SpringSecurityRequestAuthenticator
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
ConstructorDescriptionSpringSecurityRequestAuthenticator
(HttpFacade facade, javax.servlet.http.HttpServletRequest request, KeycloakDeployment deployment, AdapterTokenStore tokenStore, int sslRedirectPort) Creates a new Spring Security request authenticator. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
changeHttpSessionId
(boolean create) protected void
completeBearerAuthentication
(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal, String method) protected void
protected OAuthRequestAuthenticator
Methods inherited from class org.keycloak.adapters.RequestAuthenticator
authenticate, completeAuthentication, completeAuthentication, createBasicAuthAuthenticator, createBearerTokenAuthenticator, createQueryParameterTokenRequestAuthenticator, getChallenge, isAutodetectedBearerOnly, verifySSL
-
Constructor Details
-
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 Details
-
createOAuthAuthenticator
- Specified by:
createOAuthAuthenticator
in classRequestAuthenticator
-
completeOAuthAuthentication
protected void completeOAuthAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal) - Specified by:
completeOAuthAuthentication
in classRequestAuthenticator
-
completeBearerAuthentication
protected void completeBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal, String method) - Specified by:
completeBearerAuthentication
in classRequestAuthenticator
-
changeHttpSessionId
- Specified by:
changeHttpSessionId
in classRequestAuthenticator
-