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 SummaryFields inherited from class com.atlassian.seraph.auth.DefaultAuthenticatorLOGGED_IN_KEY, LOGGED_IN_USER_ID_KEY, LOGGED_OUT_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static booleanaddUserToGroup(com.atlassian.crowd.embedded.api.User user, String groupName) protected static com.atlassian.crowd.embedded.api.CrowdServicebooleanlogin(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, String username, String password, boolean setRememberMeCookie) Methods inherited from class com.atlassian.confluence.user.ConfluenceAuthenticatorauthenticate, authoriseUserAndEstablishSession, getEventPublisher, getUser, getUserAccessor, getUserFromSession, isPrincipalAlreadyInSessionContext, logout, putPrincipalInSessionContext, refreshPrincipalObtainedFromSession, removePrincipalFromSessionContext, setUserAccessorMethods inherited from class com.atlassian.seraph.auth.DefaultAuthenticatorgetAuthType, getElevatedSecurityGuard, getLogoutInterceptors, getPrincipalFromSession, getRememberMeService, getRoleMapper, getUser, getUserFromBasicAuthentication, getUserFromCookie, init, isAuthorisedMethods inherited from class com.atlassian.seraph.auth.AbstractAuthenticatordestroy, getConfig, getRemoteUser, getUser, login
- 
Constructor Details- 
ConfluenceGroupJoiningAuthenticatorpublic ConfluenceGroupJoiningAuthenticator()
 
- 
- 
Method Details- 
loginpublic boolean login(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, String username, String password, boolean setRememberMeCookie) throws com.atlassian.seraph.auth.AuthenticatorException - Specified by:
- loginin interface- com.atlassian.seraph.auth.Authenticator
- Overrides:
- loginin class- ConfluenceAuthenticator
- Throws:
- com.atlassian.seraph.auth.AuthenticatorException
 
- 
addUserToGroupprotected static boolean addUserToGroup(com.atlassian.crowd.embedded.api.User user, String groupName) 
- 
getCrowdServiceprotected static com.atlassian.crowd.embedded.api.CrowdService getCrowdService()
 
-