public class ConfluenceAuthenticator
extends com.atlassian.seraph.auth.DefaultAuthenticator
| Constructor and Description |
|---|
ConfluenceAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
authenticate(Principal user,
String password) |
protected boolean |
authoriseUserAndEstablishSession(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Principal principal) |
protected com.atlassian.event.api.EventPublisher |
getEventPublisher() |
protected ConfluenceUser |
getUser(String uid) |
protected UserAccessor |
getUserAccessor() |
protected boolean |
isPrincipalAlreadyInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal) |
boolean |
login(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String username,
String password,
boolean setRememberMeCookie) |
boolean |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
putPrincipalInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal) |
protected Principal |
refreshPrincipalObtainedFromSession(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal)
For error request processing, we skip refreshing the principal, since that requires a database connection,
and we may be getting errors because of database connection pool exhaustion.
|
void |
setUserAccessor(UserAccessor userAccessor) |
getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUser, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, removePrincipalFromSessionContextpublic boolean logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws com.atlassian.seraph.auth.AuthenticatorException
logout in interface com.atlassian.seraph.auth.Authenticatorlogout in class com.atlassian.seraph.auth.DefaultAuthenticatorcom.atlassian.seraph.auth.AuthenticatorExceptionpublic boolean login(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String username,
String password,
boolean setRememberMeCookie)
throws com.atlassian.seraph.auth.AuthenticatorException
login in interface com.atlassian.seraph.auth.Authenticatorlogin in class com.atlassian.seraph.auth.DefaultAuthenticatorcom.atlassian.seraph.auth.AuthenticatorExceptionprotected boolean authenticate(Principal user, String password) throws com.atlassian.seraph.auth.AuthenticatorException
authenticate in class com.atlassian.seraph.auth.DefaultAuthenticatorcom.atlassian.seraph.auth.AuthenticatorExceptionprotected boolean isPrincipalAlreadyInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal)
isPrincipalAlreadyInSessionContext in class com.atlassian.seraph.auth.DefaultAuthenticatorprotected void putPrincipalInSessionContext(javax.servlet.http.HttpServletRequest httpServletRequest,
Principal principal)
putPrincipalInSessionContext in class com.atlassian.seraph.auth.DefaultAuthenticatorprotected Principal refreshPrincipalObtainedFromSession(javax.servlet.http.HttpServletRequest httpServletRequest, Principal principal)
refreshPrincipalObtainedFromSession in class com.atlassian.seraph.auth.DefaultAuthenticatorprotected com.atlassian.event.api.EventPublisher getEventPublisher()
public void setUserAccessor(UserAccessor userAccessor)
protected UserAccessor getUserAccessor()
protected ConfluenceUser getUser(String uid)
getUser in class com.atlassian.seraph.auth.DefaultAuthenticatorprotected boolean authoriseUserAndEstablishSession(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Principal principal)
authoriseUserAndEstablishSession in class com.atlassian.seraph.auth.DefaultAuthenticatorCopyright © 2003–2023 Atlassian. All rights reserved.