Package com.atlassian.confluence.user
Class ConfluenceCrowdSSOAuthenticator
java.lang.Object
com.atlassian.seraph.auth.AbstractAuthenticator
com.atlassian.seraph.auth.DefaultAuthenticator
com.atlassian.crowd.integration.seraph.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.CrowdAuthenticator
Use this authenticator instead of the default
ConfluenceAuthenticator to enable SSO.- See Also:
-
Field Summary
Fields inherited from class com.atlassian.crowd.integration.seraph.CrowdAuthenticator
logger, PASSWORD_RESET_REQUIRED_HEADERFields inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
LOGGED_IN_KEY, LOGGED_IN_USER_ID_KEY, LOGGED_OUT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanauthoriseUserAndEstablishSession(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, Principal principal) protected com.atlassian.seraph.service.rememberme.RememberMeServicegetUser(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected Principalvoidbooleanprotected booleanisPrincipalAlreadyInSessionContext(jakarta.servlet.http.HttpServletRequest httpServletRequest, Principal principal) booleanlogin(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String username, String password, boolean cookie) protected voidlogoutUser(jakarta.servlet.http.HttpServletRequest request) protected voidputPrincipalInSessionContext(jakarta.servlet.http.HttpServletRequest httpServletRequest, Principal principal) protected PrincipalrefreshPrincipalObtainedFromSession(jakarta.servlet.http.HttpServletRequest httpServletRequest, Principal principal) Methods inherited from class com.atlassian.crowd.integration.seraph.CrowdAuthenticator
authenticate, checkAuthenticated, checkRememberMeLoginToCrowd, fetchUserInCache, logoutMethods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getPrincipalFromSession, getRoleMapper, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, isAuthorised, removePrincipalFromSessionContextMethods inherited from class com.atlassian.seraph.auth.AbstractAuthenticator
destroy, getConfig, getRemoteUser, getUser, login
-
Constructor Details
-
ConfluenceCrowdSSOAuthenticator
public ConfluenceCrowdSSOAuthenticator()
-
-
Method Details
-
init
- Specified by:
initin interfacecom.atlassian.seraph.Initable- Overrides:
initin classcom.atlassian.seraph.auth.DefaultAuthenticator
-
getUser
public Principal getUser(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Specified by:
getUserin interfacecom.atlassian.seraph.auth.Authenticator- Overrides:
getUserin classcom.atlassian.crowd.integration.seraph.CrowdAuthenticator
-
logoutUser
protected void logoutUser(jakarta.servlet.http.HttpServletRequest request) - Specified by:
logoutUserin classcom.atlassian.crowd.integration.seraph.CrowdAuthenticator
-
getUser
- Specified by:
getUserin classcom.atlassian.seraph.auth.DefaultAuthenticator
-
login
public boolean login(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String username, String password, boolean cookie) throws com.atlassian.seraph.auth.AuthenticatorException - Specified by:
loginin interfacecom.atlassian.seraph.auth.Authenticator- Overrides:
loginin classcom.atlassian.crowd.integration.seraph.CrowdAuthenticator- Throws:
com.atlassian.seraph.auth.AuthenticatorException
-
getRememberMeService
protected com.atlassian.seraph.service.rememberme.RememberMeService getRememberMeService()- Overrides:
getRememberMeServicein classcom.atlassian.seraph.auth.DefaultAuthenticator
-
authoriseUserAndEstablishSession
protected boolean authoriseUserAndEstablishSession(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, Principal principal) - Overrides:
authoriseUserAndEstablishSessionin classcom.atlassian.seraph.auth.DefaultAuthenticator
-
isPrincipalAlreadyInSessionContext
protected boolean isPrincipalAlreadyInSessionContext(jakarta.servlet.http.HttpServletRequest httpServletRequest, Principal principal) - Overrides:
isPrincipalAlreadyInSessionContextin classcom.atlassian.seraph.auth.DefaultAuthenticator
-
putPrincipalInSessionContext
protected void putPrincipalInSessionContext(jakarta.servlet.http.HttpServletRequest httpServletRequest, Principal principal) - Overrides:
putPrincipalInSessionContextin classcom.atlassian.seraph.auth.DefaultAuthenticator
-
refreshPrincipalObtainedFromSession
protected Principal refreshPrincipalObtainedFromSession(jakarta.servlet.http.HttpServletRequest httpServletRequest, Principal principal) - Overrides:
refreshPrincipalObtainedFromSessionin classcom.atlassian.seraph.auth.DefaultAuthenticator
-
isCrowdSetup
public boolean isCrowdSetup()
-