public class JIRAAuthenticator extends CrowdAuthenticator
Modifier and Type | Field and Description |
---|---|
protected static String |
JIRA_USER_DASHBOARD_CURRENT_PAGE |
logger
Constructor and Description |
---|
JIRAAuthenticator() |
JIRAAuthenticator(CrowdHttpAuthenticator crowdHttpAuthenticator) |
Modifier and Type | Method and Description |
---|---|
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.
|
authenticate, getUser, isAuthenticated, login, logout, rememberMeLoginToCrowd
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUser, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, isPrincipalAlreadyInSessionContext, isUserInRole, putPrincipalInSessionContext, refreshPrincipalObtainedFromSession, removePrincipalFromSessionContext
protected static final String JIRA_USER_DASHBOARD_CURRENT_PAGE
public JIRAAuthenticator()
public JIRAAuthenticator(CrowdHttpAuthenticator crowdHttpAuthenticator)
protected void logoutUser(javax.servlet.http.HttpServletRequest request)
CrowdAuthenticator
org.acegisecurity.context.SecurityContextHolder.clearContext();
from BamboologoutUser
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 fetchedInvalidAuthenticationException
- if the application or user authentication was not successful.OperationFailedException
- if the operation has failed for an unknown reasonUserNotFoundException
Copyright © 2013 Atlassian. All Rights Reserved.