Class FlowableOAuth2CommonGrantedAuthoritiesMapper
- java.lang.Object
-
- com.flowable.core.spring.security.oauth2.FlowableOAuth2CommonGrantedAuthoritiesMapper
-
- Direct Known Subclasses:
FlowableJwtGrantedAuthoritiesMapper
,FlowableOAuth2GrantedAuthoritiesMapper
public abstract class FlowableOAuth2CommonGrantedAuthoritiesMapper extends Object
- Author:
- Filip Hrisafov
- See Also:
FlowableJwtGrantedAuthoritiesMapper
,FlowableOAuth2GrantedAuthoritiesMapper
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>
authoritiesAttributes
protected Collection<String>
groupsAttributes
protected String
tenantAttribute
protected UserDefinitionAuthoritiesProvider
userDefinitionAuthoritiesProvider
protected String
userDefinitionKeyAttribute
-
Constructor Summary
Constructors Constructor Description FlowableOAuth2CommonGrantedAuthoritiesMapper(OAuth2MapperProperties properties, UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
asString(Object value)
protected Collection<String>
asStringCollection(Object value)
protected GrantedAuthority
collectAuthority(String attributeLocation, Map<String,Object> attributes, Function<String,GrantedAuthority> authorityCreator)
protected Collection<? extends GrantedAuthority>
collectGrantedAuthorities(Collection<String> attributesLocation, Map<String,Object> attributes, Function<String,GrantedAuthority> authorityCreator)
protected Collection<? extends GrantedAuthority>
mapAuthorities(Collection<? extends GrantedAuthority> authorities, Map<String,Object> attributes)
-
-
-
Field Detail
-
authoritiesAttributes
protected final Collection<String> authoritiesAttributes
-
groupsAttributes
protected final Collection<String> groupsAttributes
-
tenantAttribute
protected final String tenantAttribute
-
userDefinitionKeyAttribute
protected final String userDefinitionKeyAttribute
-
userDefinitionAuthoritiesProvider
protected final UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider
-
-
Constructor Detail
-
FlowableOAuth2CommonGrantedAuthoritiesMapper
public FlowableOAuth2CommonGrantedAuthoritiesMapper(OAuth2MapperProperties properties, UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider)
-
-
Method Detail
-
mapAuthorities
protected Collection<? extends GrantedAuthority> mapAuthorities(Collection<? extends GrantedAuthority> authorities, Map<String,Object> attributes)
-
collectGrantedAuthorities
protected Collection<? extends GrantedAuthority> collectGrantedAuthorities(Collection<String> attributesLocation, Map<String,Object> attributes, Function<String,GrantedAuthority> authorityCreator)
-
collectAuthority
protected GrantedAuthority collectAuthority(String attributeLocation, Map<String,Object> attributes, Function<String,GrantedAuthority> authorityCreator)
-
asStringCollection
protected Collection<String> asStringCollection(Object value)
-
-