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
Fields Modifier and Type Field Description static String
KEYCLOAK_ACCESS_TOKEN
protected org.apache.tomcat.util.descriptor.web.LoginConfig
loginConfig
protected org.apache.catalina.connector.Request
request
protected javax.servlet.http.HttpServletResponse
response
-
Constructor Summary
Constructors Constructor Description KeycloakRequestAuthenticator(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, org.keycloak.adapters.tomcat.CatalinaHttpFacade facade, org.keycloak.adapters.KeycloakDeployment deployment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.keycloak.adapters.spi.AuthOutcome
authenticate()
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
createOAuthAuthenticator()
protected org.keycloak.adapters.tomcat.GenericPrincipalFactory
createPrincipalFactory()
protected boolean
forwardToErrorPageInternal()
org.keycloak.adapters.spi.HttpFacade
getFacade()
protected org.keycloak.adapters.AdapterTokenStore
getTokenStore()
-
-
-
Field Detail
-
KEYCLOAK_ACCESS_TOKEN
public static final String KEYCLOAK_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
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
protected String changeHttpSessionId(boolean create)
- Specified by:
changeHttpSessionId
in classorg.keycloak.adapters.RequestAuthenticator
-
-