Class KeycloakRequestAuthenticator
java.lang.Object
org.keycloak.adapters.RequestAuthenticator
org.nuxeo.ecm.platform.ui.web.keycloak.KeycloakRequestAuthenticator
public class KeycloakRequestAuthenticator
extends org.keycloak.adapters.RequestAuthenticator
- Since:
- 7.4
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected org.apache.tomcat.util.descriptor.web.LoginConfig
protected org.apache.catalina.connector.Request
protected javax.servlet.http.HttpServletResponse
Fields inherited from class org.keycloak.adapters.RequestAuthenticator
challenge, deployment, facade, sslRedirectPort, tokenStore
-
Constructor Summary
ConstructorDescriptionKeycloakRequestAuthenticator
(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, org.keycloak.adapters.tomcat.CatalinaHttpFacade facade, org.keycloak.adapters.KeycloakDeployment deployment) -
Method Summary
Modifier and TypeMethodDescriptionorg.keycloak.adapters.spi.AuthOutcome
protected String
changeHttpSessionId
(boolean create) protected void
completeBearerAuthentication
(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp, String method) protected void
completeOAuthAuthentication
(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp) protected org.keycloak.adapters.OAuthRequestAuthenticator
protected org.keycloak.adapters.tomcat.GenericPrincipalFactory
protected boolean
org.keycloak.adapters.spi.HttpFacade
protected org.keycloak.adapters.AdapterTokenStore
Methods inherited from class org.keycloak.adapters.RequestAuthenticator
completeAuthentication, completeAuthentication, createBasicAuthAuthenticator, createBearerTokenAuthenticator, createQueryParameterTokenRequestAuthenticator, getChallenge, isAutodetectedBearerOnly, verifySSL
-
Field Details
-
KEYCLOAK_ACCESS_TOKEN
- See Also:
-
request
protected org.apache.catalina.connector.Request request -
response
protected javax.servlet.http.HttpServletResponse response -
loginConfig
protected org.apache.tomcat.util.descriptor.web.LoginConfig loginConfig
-
-
Constructor Details
-
KeycloakRequestAuthenticator
public KeycloakRequestAuthenticator(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, org.keycloak.adapters.tomcat.CatalinaHttpFacade facade, org.keycloak.adapters.KeycloakDeployment deployment)
-
-
Method Details
-
getFacade
public org.keycloak.adapters.spi.HttpFacade getFacade() -
authenticate
public org.keycloak.adapters.spi.AuthOutcome authenticate()- Overrides:
authenticate
in classorg.keycloak.adapters.RequestAuthenticator
-
forwardToErrorPageInternal
protected boolean forwardToErrorPageInternal() -
createPrincipalFactory
protected org.keycloak.adapters.tomcat.GenericPrincipalFactory createPrincipalFactory() -
getTokenStore
protected org.keycloak.adapters.AdapterTokenStore getTokenStore() -
createOAuthAuthenticator
protected org.keycloak.adapters.OAuthRequestAuthenticator createOAuthAuthenticator()- Specified by:
createOAuthAuthenticator
in classorg.keycloak.adapters.RequestAuthenticator
-
completeOAuthAuthentication
protected void completeOAuthAuthentication(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp) - Specified by:
completeOAuthAuthentication
in classorg.keycloak.adapters.RequestAuthenticator
-
completeBearerAuthentication
protected void completeBearerAuthentication(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp, String method) - Specified by:
completeBearerAuthentication
in classorg.keycloak.adapters.RequestAuthenticator
-
changeHttpSessionId
- Specified by:
changeHttpSessionId
in classorg.keycloak.adapters.RequestAuthenticator
-