public class CrafterProfileAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
| Constructor and Description |
|---|
CrafterProfileAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
protected void |
createUserProfile(org.craftercms.profile.impl.domain.Profile profile,
UserProfile userProfile)
Sets the base attributes in Crafter Profile
Override this & extend UserProfile to set custom attributes in the
UserProfile object
|
static List<org.springframework.security.core.GrantedAuthority> |
getGrantedAuthorities(List<String> roles) |
protected UserProfile |
getUserProfileObject()
Override this to specify a custom user profile object to use
|
void |
setCrafterProfileAppPassword(String crafterProfileAppPassword) |
void |
setCrafterProfileAppTenantName(String crafterProfileAppTenantName) |
void |
setCrafterProfileAppUsername(String crafterProfileAppUsername) |
void |
setProfileRestClient(org.craftercms.profile.api.ProfileClient profileRestClient) |
boolean |
supports(Class<?> authentication) |
public CrafterProfileAuthenticationProvider()
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionprotected UserProfile getUserProfileObject()
protected void createUserProfile(org.craftercms.profile.impl.domain.Profile profile,
UserProfile userProfile)
profile - public boolean supports(Class<?> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProviderpublic void setProfileRestClient(org.craftercms.profile.api.ProfileClient profileRestClient)
public void setCrafterProfileAppUsername(String crafterProfileAppUsername)
public void setCrafterProfileAppPassword(String crafterProfileAppPassword)
public void setCrafterProfileAppTenantName(String crafterProfileAppTenantName)
Copyright © 2013 CrafterCMS. All Rights Reserved.