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.v22.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.v22.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.v22.CrowdAuthenticator
logger
 
Fields inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
LOGGED_IN_KEY, LOGGED_OUT_KEY
 
Fields inherited from interface com.atlassian.seraph.auth.Authenticator
DEFAULT_AUTHENTICATOR
 
Constructor Summary
ConfluenceCrowdSSOAuthenticator()
           
ConfluenceCrowdSSOAuthenticator(com.atlassian.crowd.integration.http.CrowdHttpAuthenticator crowdHttpAuthenticator)
           
 
Method Summary
protected  com.atlassian.event.EventManager getEventManager()
           
protected  Principal getUser(String username)
           
protected  com.atlassian.user.UserManager getUserManager()
           
 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)
           
 
Methods inherited from class com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator
authenticate, fetchUserInCache, getUser, isAuthenticated, logout, rememberMeLoginToCrowd
 
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, isPrincipalAlreadyInSessionContext, isUserInRole, putPrincipalInSessionContext, refreshPrincipalObtainedFromSession, 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.v22.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.v22.CrowdAuthenticator
Throws:
com.atlassian.seraph.auth.AuthenticatorException

getEventManager

protected com.atlassian.event.EventManager getEventManager()

getUserManager

protected com.atlassian.user.UserManager getUserManager()


Copyright © 2003-2011 Atlassian. All Rights Reserved.