|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.seraph.auth.AbstractAuthenticator com.atlassian.seraph.auth.DefaultAuthenticator com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator com.atlassian.crowd.integration.seraph.v22.JIRAAuthenticator
public class JIRAAuthenticator
Field Summary | |
---|---|
protected static String |
JIRA_USER_DASHBOARD_CURRENT_PAGE
|
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 | |
---|---|
JIRAAuthenticator()
|
|
JIRAAuthenticator(CrowdHttpAuthenticator crowdHttpAuthenticator)
|
Method Summary | |
---|---|
protected void |
fetchUserInCache(String username)
Fetches a user with the given username in the cache, in case the user exists, but cannot be found from the cache yet. |
protected void |
logoutUser(javax.servlet.http.HttpServletRequest request)
This method will allow you to remove all session information about the user and force them to re-authenticate If you wish to remove specific application attributes for the user, e.g. |
Methods inherited from class com.atlassian.crowd.integration.seraph.v22.CrowdAuthenticator |
---|
authenticate, getUser, isAuthenticated, login, logout, rememberMeLoginToCrowd |
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator |
---|
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUser, 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 |
Field Detail |
---|
protected static final String JIRA_USER_DASHBOARD_CURRENT_PAGE
Constructor Detail |
---|
public JIRAAuthenticator()
public JIRAAuthenticator(CrowdHttpAuthenticator crowdHttpAuthenticator)
Method Detail |
---|
protected void logoutUser(javax.servlet.http.HttpServletRequest request)
CrowdAuthenticator
org.acegisecurity.context.SecurityContextHolder.clearContext();
from Bamboo
logoutUser
in class CrowdAuthenticator
request
- the current requestprotected void fetchUserInCache(String username) throws UserNotFoundException, InvalidAuthenticationException, OperationFailedException
CrowdAuthenticator
DefaultAuthenticator.getUser(String)
, but JIRA needs
to override it, because DefaultAuthenticator.getUser(String)
only checks the local cache when retrieving users.
fetchUserInCache
in class CrowdAuthenticator
username
- username of the user to be fetched
InvalidAuthenticationException
- if the application or user authentication was not successful.
OperationFailedException
- if the operation has failed for an unknown reason
UserNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |