public abstract class AbstractKeycloakAuthenticatorValve
extends org.apache.catalina.authenticator.FormAuthenticator
implements org.apache.catalina.LifecycleListener
Modifier and Type | Field and Description |
---|---|
protected AdapterDeploymentContext |
deploymentContext |
protected NodesRegistrationManagement |
nodesRegistrationManagement |
static String |
TOKEN_STORE_NOTE |
protected CatalinaUserSessionManagement |
userSessionManagement |
characterEncoding, info
algorithm, cache, changeSessionIdOnAuthentication, context, DEFAULT_ALGORITHM, digest, disableProxyCaching, entropy, lifecycle, random, randomClass, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sm, sso, started
Constructor and Description |
---|
AbstractKeycloakAuthenticatorValve() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
authenticateInternal(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
Object loginConfig) |
protected void |
beforeStop() |
protected void |
checkKeycloakSession(org.apache.catalina.connector.Request request,
HttpFacade facade)
Checks that access token is still valid.
|
protected abstract AbstractAuthenticatedActionsValve |
createAuthenticatedActionsValve(AdapterDeploymentContext deploymentContext,
org.apache.catalina.Valve next,
org.apache.catalina.Container container) |
protected abstract GenericPrincipalFactory |
createPrincipalFactory() |
protected CatalinaRequestAuthenticator |
createRequestAuthenticator(org.apache.catalina.connector.Request request,
CatalinaHttpFacade facade,
KeycloakDeployment deployment,
AdapterTokenStore tokenStore) |
protected abstract boolean |
forwardToErrorPageInternal(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
Object loginConfig) |
protected AdapterTokenStore |
getTokenStore(org.apache.catalina.connector.Request request,
HttpFacade facade,
KeycloakDeployment resolvedDeployment) |
void |
invoke(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response) |
void |
keycloakInit() |
boolean |
keycloakRestoreRequest(org.apache.catalina.connector.Request request) |
void |
keycloakSaveRequest(org.apache.catalina.connector.Request request) |
void |
lifecycleEvent(org.apache.catalina.LifecycleEvent event) |
protected void |
logoutInternal(org.apache.catalina.connector.Request request) |
authenticate, forwardToErrorPage, forwardToLoginPage, getCharacterEncoding, getInfo, matchRequest, restoreRequest, savedRequestURL, saveRequest, setCharacterEncoding
addLifecycleListener, associate, findLifecycleListeners, generateSessionId, getAlgorithm, getCache, getChangeSessionIdOnAuthentication, getContainer, getDigest, getDisableProxyCaching, getEntropy, getRandom, getRandomClass, getSecurePagesWithPragma, reauthenticateFromSSO, register, removeLifecycleListener, setAlgorithm, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setEntropy, setRandomClass, setSecurePagesWithPragma, start, stop
public static final String TOKEN_STORE_NOTE
protected CatalinaUserSessionManagement userSessionManagement
protected AdapterDeploymentContext deploymentContext
protected NodesRegistrationManagement nodesRegistrationManagement
public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
lifecycleEvent
in interface org.apache.catalina.LifecycleListener
protected void logoutInternal(org.apache.catalina.connector.Request request)
protected void beforeStop()
public void keycloakInit()
public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, javax.servlet.ServletException
invoke
in interface org.apache.catalina.Valve
invoke
in class org.apache.catalina.authenticator.AuthenticatorBase
IOException
javax.servlet.ServletException
protected abstract GenericPrincipalFactory createPrincipalFactory()
protected abstract boolean forwardToErrorPageInternal(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, Object loginConfig) throws IOException
IOException
protected abstract AbstractAuthenticatedActionsValve createAuthenticatedActionsValve(AdapterDeploymentContext deploymentContext, org.apache.catalina.Valve next, org.apache.catalina.Container container)
protected boolean authenticateInternal(org.apache.catalina.connector.Request request, javax.servlet.http.HttpServletResponse response, Object loginConfig) throws IOException
IOException
protected CatalinaRequestAuthenticator createRequestAuthenticator(org.apache.catalina.connector.Request request, CatalinaHttpFacade facade, KeycloakDeployment deployment, AdapterTokenStore tokenStore)
protected void checkKeycloakSession(org.apache.catalina.connector.Request request, HttpFacade facade)
request
- public void keycloakSaveRequest(org.apache.catalina.connector.Request request) throws IOException
IOException
public boolean keycloakRestoreRequest(org.apache.catalina.connector.Request request)
protected AdapterTokenStore getTokenStore(org.apache.catalina.connector.Request request, HttpFacade facade, KeycloakDeployment resolvedDeployment)
Copyright © 2019 JBoss by Red Hat. All rights reserved.