Package org.flowable.ui.common.rest.idm
Class OAuth2CurrentUserProvider
- java.lang.Object
-
- org.flowable.ui.common.rest.idm.OAuth2CurrentUserProvider
-
- All Implemented Interfaces:
CurrentUserProvider
public class OAuth2CurrentUserProvider extends Object implements CurrentUserProvider
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringemailKeyprotected StringfirstNameKeyprotected StringfullNameKeyprotected StringlastNameKey
-
Constructor Summary
Constructors Constructor Description OAuth2CurrentUserProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetAttribute(String attribute, Map<String,Object> attributes, String defaultAttributeValue)UserRepresentationgetCurrentUser(org.springframework.security.core.Authentication authentication)protected UserRepresentationgetCurrentUser(org.springframework.security.oauth2.core.oidc.user.OidcUser user)protected UserRepresentationgetCurrentUser(org.springframework.security.oauth2.core.user.OAuth2User user)StringgetEmailKey()StringgetFirstNameKey()StringgetFullNameKey()StringgetLastNameKey()voidsetEmailKey(String emailKey)voidsetFirstNameKey(String firstNameKey)voidsetFullNameKey(String fullNameKey)voidsetLastNameKey(String lastNameKey)booleansupports(org.springframework.security.core.Authentication authentication)
-
-
-
Method Detail
-
getCurrentUser
public UserRepresentation getCurrentUser(org.springframework.security.core.Authentication authentication)
- Specified by:
getCurrentUserin interfaceCurrentUserProvider
-
getCurrentUser
protected UserRepresentation getCurrentUser(org.springframework.security.oauth2.core.oidc.user.OidcUser user)
-
getCurrentUser
protected UserRepresentation getCurrentUser(org.springframework.security.oauth2.core.user.OAuth2User user)
-
getAttribute
protected String getAttribute(String attribute, Map<String,Object> attributes, String defaultAttributeValue)
-
supports
public boolean supports(org.springframework.security.core.Authentication authentication)
- Specified by:
supportsin interfaceCurrentUserProvider
-
getFirstNameKey
public String getFirstNameKey()
-
setFirstNameKey
public void setFirstNameKey(String firstNameKey)
-
getLastNameKey
public String getLastNameKey()
-
setLastNameKey
public void setLastNameKey(String lastNameKey)
-
getFullNameKey
public String getFullNameKey()
-
setFullNameKey
public void setFullNameKey(String fullNameKey)
-
getEmailKey
public String getEmailKey()
-
setEmailKey
public void setEmailKey(String emailKey)
-
-