public class OAuthManagedResourceValve
extends org.apache.catalina.authenticator.FormAuthenticator
implements org.apache.catalina.LifecycleListener
Redirects browser to remote authentication server if not logged in. Also allows OAuth Bearer Token requests that contain a Skeleton Key bearer tokens.
| Modifier and Type | Field and Description |
|---|---|
protected RealmConfiguration |
realmConfiguration |
protected ManagedResourceConfig |
remoteSkeletonKeyConfig |
protected ResourceMetadata |
resourceMetadata |
protected UserSessionManagement |
userSessionManagement |
characterEncoding, info, landingPageAUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, lifecycle, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sm, sso, started| Constructor and Description |
|---|
OAuthManagedResourceValve() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig config) |
protected boolean |
bearer(boolean challenge,
org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
checkLoggedIn(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response) |
protected void |
init() |
void |
invoke(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response) |
void |
lifecycleEvent(org.apache.catalina.LifecycleEvent event) |
protected void |
oauth(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response)
This method always set the HTTP response, so do not continue after invoking
|
protected void |
remoteLogout(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response) |
void |
start() |
forwardToErrorPage, forwardToLoginPage, getCharacterEncoding, getInfo, getLandingPage, matchRequest, restoreRequest, savedRequestURL, saveRequest, setCharacterEncoding, setLandingPageaddLifecycleListener, associate, authenticate, findLifecycleListeners, generateSessionId, getCache, getContainer, getDisableProxyCaching, getSecurePagesWithPragma, isChangeSessionIdOnAuthentication, login, logout, reauthenticateFromSSO, register, removeLifecycleListener, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setSecurePagesWithPragma, stop, unregisterprotected RealmConfiguration realmConfiguration
protected UserSessionManagement userSessionManagement
protected ManagedResourceConfig remoteSkeletonKeyConfig
protected ResourceMetadata resourceMetadata
public void start()
throws org.apache.catalina.LifecycleException
start in interface org.apache.catalina.Lifecyclestart in class org.apache.catalina.authenticator.AuthenticatorBaseorg.apache.catalina.LifecycleExceptionpublic void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
lifecycleEvent in interface org.apache.catalina.LifecycleListenerprotected void init()
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.Valveinvoke in class org.apache.catalina.authenticator.AuthenticatorBaseIOExceptionjavax.servlet.ServletExceptionpublic boolean authenticate(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response,
org.apache.catalina.deploy.LoginConfig config)
throws IOException
authenticate in class org.apache.catalina.authenticator.FormAuthenticatorIOExceptionprotected void remoteLogout(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionprotected boolean bearer(boolean challenge,
org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response)
throws LoginException,
IOException
LoginExceptionIOExceptionprotected boolean checkLoggedIn(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response)
protected void oauth(org.apache.catalina.connector.Request request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.