com.atlassian.confluence.user
Class ConfluenceCrowdSSOAuthenticator
java.lang.Object
com.atlassian.seraph.auth.AbstractAuthenticator
com.atlassian.seraph.auth.DefaultAuthenticator
com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator
com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator
- All Implemented Interfaces:
- com.atlassian.seraph.auth.Authenticator, com.atlassian.seraph.Initable, Serializable
public class ConfluenceCrowdSSOAuthenticator
- extends com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator
Use this authenticator instead of the default ConfluenceAuthenticator
to enable SSO.
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator |
logger, PASSWORD_RESET_REQUIRED_HEADER |
Fields inherited from class com.atlassian.seraph.auth.DefaultAuthenticator |
LOGGED_IN_KEY, LOGGED_OUT_KEY |
Methods inherited from class com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator |
authenticate, fetchUserInCache, getUser, isAuthenticated, logout, rememberMeLoginToCrowd |
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator |
getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, removePrincipalFromSessionContext |
Methods inherited from class com.atlassian.seraph.auth.AbstractAuthenticator |
destroy, getConfig, getRemoteUser, getUser, login |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceCrowdSSOAuthenticator
public ConfluenceCrowdSSOAuthenticator()
ConfluenceCrowdSSOAuthenticator
public ConfluenceCrowdSSOAuthenticator(com.atlassian.crowd.integration.http.CrowdHttpAuthenticator crowdHttpAuthenticator)
logoutUser
protected void logoutUser(javax.servlet.http.HttpServletRequest request)
- Specified by:
logoutUser
in class com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator
getUser
protected Principal getUser(String username)
- Specified by:
getUser
in class com.atlassian.seraph.auth.DefaultAuthenticator
login
public boolean login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username,
String password,
boolean cookie)
throws com.atlassian.seraph.auth.AuthenticatorException
- Specified by:
login
in interface com.atlassian.seraph.auth.Authenticator
- Overrides:
login
in class com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator
- Throws:
com.atlassian.seraph.auth.AuthenticatorException
getEventManager
protected com.atlassian.event.EventManager getEventManager()
getUserAccessor
protected UserAccessor getUserAccessor()
authoriseUserAndEstablishSession
protected boolean authoriseUserAndEstablishSession(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Principal principal)
- Overrides:
authoriseUserAndEstablishSession
in class com.atlassian.seraph.auth.DefaultAuthenticator
isPrincipalAlreadyInSessionContext
protected boolean isPrincipalAlreadyInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal)
- Overrides:
isPrincipalAlreadyInSessionContext
in class com.atlassian.seraph.auth.DefaultAuthenticator
putPrincipalInSessionContext
protected void putPrincipalInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal)
- Overrides:
putPrincipalInSessionContext
in class com.atlassian.seraph.auth.DefaultAuthenticator
refreshPrincipalObtainedFromSession
protected Principal refreshPrincipalObtainedFromSession(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal)
- Overrides:
refreshPrincipalObtainedFromSession
in class com.atlassian.seraph.auth.DefaultAuthenticator
Copyright © 2003–2015 Atlassian. All rights reserved.