com.atlassian.crowd.integration.seraph
Class JIRAAuthenticator

java.lang.Object
  extended by com.atlassian.seraph.auth.AbstractAuthenticator
      extended by com.atlassian.seraph.auth.DefaultAuthenticator
          extended by com.atlassian.crowd.integration.seraph.CrowdAuthenticator
              extended by com.atlassian.crowd.integration.seraph.JIRAAuthenticator
All Implemented Interfaces:
com.atlassian.seraph.auth.Authenticator, com.atlassian.seraph.Initable, java.io.Serializable

public class JIRAAuthenticator
extends CrowdAuthenticator

See Also:
Serialized Form

Field Summary
protected static java.lang.String JIRA_USER_DASHBOARD_CURRENT_PAGE
           
 
Fields inherited from class com.atlassian.crowd.integration.seraph.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(java.lang.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.CrowdAuthenticator
authenticate, autoLoginToCrowd, getUser, isAuthenticated, login, login, logout
 
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUser, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, isUserInRole, putPrincipalInSessionContext, removePrincipalFromSessionContext
 
Methods inherited from class com.atlassian.seraph.auth.AbstractAuthenticator
destroy, getConfig, getRemoteUser, getUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JIRA_USER_DASHBOARD_CURRENT_PAGE

protected static final java.lang.String JIRA_USER_DASHBOARD_CURRENT_PAGE
See Also:
Constant Field Values
Constructor Detail

JIRAAuthenticator

public JIRAAuthenticator()

JIRAAuthenticator

public JIRAAuthenticator(CrowdHttpAuthenticator crowdHttpAuthenticator)
Method Detail

logoutUser

protected void logoutUser(javax.servlet.http.HttpServletRequest request)
Description copied from class: CrowdAuthenticator
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. org.acegisecurity.context.SecurityContextHolder.clearContext(); from Bamboo

Parameters:
request - the current request

fetchUserInCache

protected void fetchUserInCache(java.lang.String username)
Description copied from class: CrowdAuthenticator
Fetches a user with the given username in the cache, in case the user exists, but cannot be found from the cache yet. By default this method will call DefaultAuthenticator.getUser(String), but JIRA needs to override it, because DefaultAuthenticator.getUser(String) only checks the local cache when retrieving users.

Overrides:
fetchUserInCache in class CrowdAuthenticator
Parameters:
username - username of the user to be fetched


Copyright © 2010 Atlassian. All Rights Reserved.