public class KeycloakRequestAuthenticator extends org.keycloak.adapters.RequestAuthenticator
Modifier and Type | Field and Description |
---|---|
static String |
KEYCLOAK_ACCESS_TOKEN |
protected org.apache.catalina.deploy.LoginConfig |
loginConfig |
protected org.apache.catalina.connector.Request |
request |
protected javax.servlet.http.HttpServletResponse |
response |
Constructor and Description |
---|
KeycloakRequestAuthenticator(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
org.keycloak.adapters.tomcat.CatalinaHttpFacade facade,
org.keycloak.adapters.KeycloakDeployment deployment) |
Modifier and Type | Method and Description |
---|---|
org.keycloak.adapters.AuthOutcome |
authenticate() |
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.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
Object loginConfig) |
protected String |
getHttpSessionId(boolean create) |
protected org.keycloak.adapters.AdapterTokenStore |
getTokenStore() |
public static final String KEYCLOAK_ACCESS_TOKEN
protected org.apache.catalina.connector.Request request
protected javax.servlet.http.HttpServletResponse response
protected org.apache.catalina.deploy.LoginConfig loginConfig
public KeycloakRequestAuthenticator(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, org.keycloak.adapters.tomcat.CatalinaHttpFacade facade, org.keycloak.adapters.KeycloakDeployment deployment)
public org.keycloak.adapters.AuthOutcome authenticate()
authenticate
in class org.keycloak.adapters.RequestAuthenticator
protected boolean forwardToErrorPageInternal(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, Object loginConfig)
protected org.keycloak.adapters.tomcat.GenericPrincipalFactory createPrincipalFactory()
protected org.keycloak.adapters.AdapterTokenStore getTokenStore()
protected org.keycloak.adapters.OAuthRequestAuthenticator createOAuthAuthenticator()
createOAuthAuthenticator
in class org.keycloak.adapters.RequestAuthenticator
protected void completeOAuthAuthentication(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp)
completeOAuthAuthentication
in class org.keycloak.adapters.RequestAuthenticator
protected void completeBearerAuthentication(org.keycloak.KeycloakPrincipal<org.keycloak.adapters.RefreshableKeycloakSecurityContext> skp, String method)
completeBearerAuthentication
in class org.keycloak.adapters.RequestAuthenticator
protected String getHttpSessionId(boolean create)
getHttpSessionId
in class org.keycloak.adapters.RequestAuthenticator
Copyright © 2015 Nuxeo SA. All rights reserved.