public class OAuth2CurrentUserProvider extends Object implements CurrentUserProvider
| Modifier and Type | Field and Description |
|---|---|
protected String |
emailKey |
protected String |
firstNameKey |
protected String |
fullNameKey |
protected String |
lastNameKey |
| Constructor and Description |
|---|
OAuth2CurrentUserProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAttribute(String attribute,
Map<String,Object> attributes,
String defaultAttributeValue) |
UserRepresentation |
getCurrentUser(org.springframework.security.core.Authentication authentication) |
protected UserRepresentation |
getCurrentUser(org.springframework.security.oauth2.core.user.OAuth2User user) |
protected UserRepresentation |
getCurrentUser(org.springframework.security.oauth2.core.oidc.user.OidcUser user) |
String |
getEmailKey() |
String |
getFirstNameKey() |
String |
getFullNameKey() |
String |
getLastNameKey() |
void |
setEmailKey(String emailKey) |
void |
setFirstNameKey(String firstNameKey) |
void |
setFullNameKey(String fullNameKey) |
void |
setLastNameKey(String lastNameKey) |
boolean |
supports(org.springframework.security.core.Authentication authentication) |
protected String firstNameKey
protected String lastNameKey
protected String fullNameKey
protected String emailKey
public UserRepresentation getCurrentUser(org.springframework.security.core.Authentication authentication)
getCurrentUser in interface CurrentUserProviderprotected UserRepresentation getCurrentUser(org.springframework.security.oauth2.core.oidc.user.OidcUser user)
protected UserRepresentation getCurrentUser(org.springframework.security.oauth2.core.user.OAuth2User user)
protected String getAttribute(String attribute, Map<String,Object> attributes, String defaultAttributeValue)
public boolean supports(org.springframework.security.core.Authentication authentication)
supports in interface CurrentUserProviderpublic String getFirstNameKey()
public void setFirstNameKey(String firstNameKey)
public String getLastNameKey()
public void setLastNameKey(String lastNameKey)
public String getFullNameKey()
public void setFullNameKey(String fullNameKey)
public String getEmailKey()
public void setEmailKey(String emailKey)
Copyright © 2022 Flowable. All rights reserved.