com.atlassian.crowd.integration.seraph.v25
Class BambooAuthenticator

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

public class BambooAuthenticator
extends com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator

A Seraph Authenticator that works against Crowd and enables single sign-on. This is not currently dynamic; it will only pick up configuration changes to the Crowd client properties when Bamboo is restarted. It will only work against Crowd, not against JIRA.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.crowd.integration.seraph.v25.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
BambooAuthenticator()
           
BambooAuthenticator(com.atlassian.crowd.integration.http.CrowdHttpAuthenticator crowdHttpAuthenticator)
           
 
Method Summary
protected  org.acegisecurity.Authentication createAuthentication(javax.servlet.ServletRequest request)
           
protected  java.security.Principal getUser(java.lang.String username)
           
protected  void logoutUser(javax.servlet.http.HttpServletRequest request)
          Clear the Acegi security context in Bamboo and replace it with an AnonymousAuthenticationToken.
 
Methods inherited from class com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator
authenticate, fetchUserInCache, getUser, isAuthenticated, login, logout, rememberMeLoginToCrowd
 
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
authoriseUserAndEstablishSession, getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, 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
 

Constructor Detail

BambooAuthenticator

public BambooAuthenticator()

BambooAuthenticator

public BambooAuthenticator(com.atlassian.crowd.integration.http.CrowdHttpAuthenticator crowdHttpAuthenticator)
Method Detail

getUser

protected java.security.Principal getUser(java.lang.String username)
Specified by:
getUser in class com.atlassian.seraph.auth.DefaultAuthenticator

createAuthentication

protected org.acegisecurity.Authentication createAuthentication(javax.servlet.ServletRequest request)

logoutUser

protected void logoutUser(javax.servlet.http.HttpServletRequest request)
Clear the Acegi security context in Bamboo and replace it with an AnonymousAuthenticationToken.

Specified by:
logoutUser in class com.atlassian.crowd.integration.seraph.v25.CrowdAuthenticator
Parameters:
request -


Copyright © 2012 Atlassian. All Rights Reserved.