public class ConfluenceAuthenticationProvider extends ExternalAuthenticationProvider
| Constructor and Description |
|---|
ConfluenceAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.core.Authentication |
createSuccessAuthentication(UserDetails details,
org.springframework.security.core.Authentication authentication)
Creates a successful
Authentication object. |
protected ConfluenceConfiguration |
getConfiguration()
Returns the configuration for the external authentication.
|
String |
getIdentifier() |
List<InvitationField> |
getInvitationFields() |
UserVO |
queryUser(Map<InvitationField,String> queryData)
Queries a user and returns the user data
|
protected ExternalUserVO |
retrieveExternalUser(org.springframework.security.core.Authentication authentication)
Tries to retrieve the user details from the associated external resource.
|
boolean |
supports(Class authentication) |
createUserIdentification, getUser, handleRetrieveUserDetails, supportsUserQueryingauthenticate, retrieveAndAuthenticateUserDetailsprotected org.springframework.security.core.Authentication createSuccessAuthentication(UserDetails details, org.springframework.security.core.Authentication authentication)
Authentication object. Subclasses will usually store the
original credentials the user supplied (not salted or encoded passwords) in the returned
Authentication object.createSuccessAuthentication in class BaseCommunoteAuthenticationProviderdetails - the authenticated user details. Subclasses should store it as principal in the
authentication object.authentication - that was presented to the provider for validationprotected ConfluenceConfiguration getConfiguration()
ExternalAuthenticationProvidergetConfiguration in class ExternalAuthenticationProviderpublic String getIdentifier()
getIdentifier in class BaseCommunoteAuthenticationProviderpublic List<InvitationField> getInvitationFields()
getInvitationFields in class BaseCommunoteAuthenticationProviderpublic UserVO queryUser(Map<InvitationField,String> queryData) throws org.springframework.security.core.AuthenticationException
queryUser in class BaseCommunoteAuthenticationProviderqueryData - the data to use for query. See InvitationField for possible values. The
fields this provider uses are defined by BaseCommunoteAuthenticationProvider.getInvitationFields()org.springframework.security.core.AuthenticationExceptionprotected ExternalUserVO retrieveExternalUser(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
retrieveExternalUser in class ExternalAuthenticationProviderauthentication - the authentication detailsorg.springframework.security.core.AuthenticationException - if there is no user for the provided authentication or the authentication cannot
be approved. Subclasses should throw an appropriate sub-exception.public boolean supports(Class authentication)
Copyright © 2019 Communote team. All rights reserved.