com.atlassian.confluence.user
Class ConfluenceCrowdSSOAuthenticator

java.lang.Object
  extended by com.atlassian.seraph.auth.AbstractAuthenticator
      extended by com.atlassian.seraph.auth.DefaultAuthenticator
          extended by com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator
              extended by 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

Field Summary
 
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
 
Constructor Summary
ConfluenceCrowdSSOAuthenticator()
           
ConfluenceCrowdSSOAuthenticator(com.atlassian.crowd.integration.http.CrowdHttpAuthenticator crowdHttpAuthenticator)
           
 
Method Summary
protected  boolean authoriseUserAndEstablishSession(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Principal principal)
           
protected  com.atlassian.event.EventManager getEventManager()
           
protected  Principal getUser(String username)
           
protected  UserAccessor getUserAccessor()
           
protected  boolean isPrincipalAlreadyInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest, Principal principal)
           
 boolean login(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String username, String password, boolean cookie)
           
protected  void logoutUser(javax.servlet.http.HttpServletRequest request)
           
protected  void putPrincipalInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest, Principal principal)
           
protected  Principal refreshPrincipalObtainedFromSession(javax.servlet.http.HttpServletRequest httpServletRequest, Principal principal)
           
 
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
 

Constructor Detail

ConfluenceCrowdSSOAuthenticator

public ConfluenceCrowdSSOAuthenticator()

ConfluenceCrowdSSOAuthenticator

public ConfluenceCrowdSSOAuthenticator(com.atlassian.crowd.integration.http.CrowdHttpAuthenticator crowdHttpAuthenticator)
Method Detail

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.