Package com.atlassian.confluence.user
Class ConfluenceGroupJoiningAuthenticator
java.lang.Object
com.atlassian.seraph.auth.AbstractAuthenticator
com.atlassian.seraph.auth.DefaultAuthenticator
com.atlassian.confluence.user.ConfluenceAuthenticator
com.atlassian.confluence.user.ConfluenceGroupJoiningAuthenticator
- All Implemented Interfaces:
com.atlassian.seraph.auth.Authenticator
,com.atlassian.seraph.Initable
,Serializable
- Direct Known Subclasses:
ConfluenceLDAPGroupJoiningAuthenticator
This authenticator adds users to the default users group when they first log in.
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
LOGGED_IN_KEY, LOGGED_IN_USER_ID_KEY, LOGGED_OUT_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
addUserToGroup
(com.atlassian.crowd.embedded.api.User user, String groupName) protected static com.atlassian.crowd.embedded.api.CrowdService
boolean
login
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String username, String password, boolean setRememberMeCookie) Methods inherited from class com.atlassian.confluence.user.ConfluenceAuthenticator
authenticate, authoriseUserAndEstablishSession, getEventPublisher, getUser, getUserAccessor, getUserFromSession, isPrincipalAlreadyInSessionContext, logout, putPrincipalInSessionContext, refreshPrincipalObtainedFromSession, setUserAccessor
Methods inherited from class com.atlassian.seraph.auth.DefaultAuthenticator
getAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getPrincipalFromSession, getRememberMeService, getRoleMapper, getUser, getUserFromBasicAuthentication, getUserFromCookie, init, isAuthorised, removePrincipalFromSessionContext
Methods inherited from class com.atlassian.seraph.auth.AbstractAuthenticator
destroy, getConfig, getRemoteUser, getUser, login
-
Constructor Details
-
ConfluenceGroupJoiningAuthenticator
public ConfluenceGroupJoiningAuthenticator()
-
-
Method Details
-
login
public boolean login(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String username, String password, boolean setRememberMeCookie) throws com.atlassian.seraph.auth.AuthenticatorException - Specified by:
login
in interfacecom.atlassian.seraph.auth.Authenticator
- Overrides:
login
in classConfluenceAuthenticator
- Throws:
com.atlassian.seraph.auth.AuthenticatorException
-
addUserToGroup
protected static boolean addUserToGroup(com.atlassian.crowd.embedded.api.User user, String groupName) -
getCrowdService
protected static com.atlassian.crowd.embedded.api.CrowdService getCrowdService()
-