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, supportsUserQuerying
authenticate, retrieveAndAuthenticateUserDetails
protected 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 BaseCommunoteAuthenticationProvider
details
- 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()
ExternalAuthenticationProvider
getConfiguration
in class ExternalAuthenticationProvider
public String getIdentifier()
getIdentifier
in class BaseCommunoteAuthenticationProvider
public List<InvitationField> getInvitationFields()
getInvitationFields
in class BaseCommunoteAuthenticationProvider
public UserVO queryUser(Map<InvitationField,String> queryData) throws org.springframework.security.core.AuthenticationException
queryUser
in class BaseCommunoteAuthenticationProvider
queryData
- 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.AuthenticationException
protected ExternalUserVO retrieveExternalUser(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
retrieveExternalUser
in class ExternalAuthenticationProvider
authentication
- 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.