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
ConstructorsConstructorDescriptionSpringSecurityRequestAuthenticator(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 StringchangeHttpSessionId(boolean create) protected voidcompleteBearerAuthentication(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal, String method) protected voidprotected OAuthRequestAuthenticatorMethods 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:
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
- Specified by:
changeHttpSessionIdin classRequestAuthenticator
-