com.atlassian.confluence.user
Class ConfluenceGroupJoiningAuthenticator

java.lang.Object
  extended by com.atlassian.seraph.auth.AbstractAuthenticator
      extended by com.atlassian.seraph.auth.DefaultAuthenticator
          extended by com.atlassian.confluence.user.ConfluenceAuthenticator
              extended by com.atlassian.confluence.user.ConfluenceGroupJoiningAuthenticator
All Implemented Interfaces:
com.atlassian.seraph.auth.Authenticator, com.atlassian.seraph.Initable, java.io.Serializable
Direct Known Subclasses:
ConfluenceLDAPGroupJoiningAuthenticator

public class ConfluenceGroupJoiningAuthenticator
extends ConfluenceAuthenticator

This authenticator adds users to the default users group when they first log in.

See Also:
Serialized Form

Field Summary
 
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
ConfluenceGroupJoiningAuthenticator()
           
 
Method Summary
protected static boolean addUserToGroup(com.atlassian.crowd.embedded.api.User user, java.lang.String groupName)
           
protected static com.atlassian.crowd.embedded.api.CrowdService getCrowdService()
           
 boolean login(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, java.lang.String username, java.lang.String password, boolean setRememberMeCookie)
           
 
Methods inherited from class com.atlassian.confluence.user.ConfluenceAuthenticator
authenticate, authoriseUserAndEstablishSession, getEventPublisher, getUser, getUser, getUserAccessor, isPrincipalAlreadyInSessionContext, logout, putPrincipalInSessionContext, refreshPrincipalObtainedFromSession, setUserAccessor
 
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getRememberMeService, getRoleMapper, getUserFromBasicAuthentication, getUserFromCookie, getUserFromSession, init, isAuthorised, isUserInRole, 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

ConfluenceGroupJoiningAuthenticator

public ConfluenceGroupJoiningAuthenticator()
Method Detail

login

public boolean login(javax.servlet.http.HttpServletRequest httpServletRequest,
                     javax.servlet.http.HttpServletResponse httpServletResponse,
                     java.lang.String username,
                     java.lang.String password,
                     boolean setRememberMeCookie)
              throws com.atlassian.seraph.auth.AuthenticatorException
Specified by:
login in interface com.atlassian.seraph.auth.Authenticator
Overrides:
login in class ConfluenceAuthenticator
Throws:
com.atlassian.seraph.auth.AuthenticatorException

addUserToGroup

protected static boolean addUserToGroup(com.atlassian.crowd.embedded.api.User user,
                                        java.lang.String groupName)

getCrowdService

protected static com.atlassian.crowd.embedded.api.CrowdService getCrowdService()


Copyright © 2003-2013 Atlassian. All Rights Reserved.