Class OAuth2MapperProperties
- java.lang.Object
-
- com.flowable.core.spring.security.oauth2.OAuth2MapperProperties
-
public class OAuth2MapperProperties extends Object
- Author:
- Filip Hrisafov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OAuth2MapperProperties.UserDefinitionGroupMapping
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>
authoritiesAttributes
The name of the attributes from which authorities should be extracted from without any changes.protected String
defaultUserDefinitionKey
The default user definition key that should be used when unable to derive user definition.protected Collection<String>
groupsAttributes
The name of the attributes from which groups should be extracted from and converter to Flowable Groups.protected boolean
loadAuthoritiesFromIdentityService
Enables the loading from the platform user.protected String
tenantAttribute
The name of the attribute that holds the tenant id for the authentication.protected Collection<OAuth2MapperProperties.UserDefinitionGroupMapping>
userDefinitionGroupMappings
Mapping a group key and a user definition.protected String
userDefinitionKeyAttribute
The name of the attribute that holds the user definition key attribute for the authentication.
-
Constructor Summary
Constructors Constructor Description OAuth2MapperProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
getAuthoritiesAttributes()
String
getDefaultUserDefinitionKey()
Collection<String>
getGroupsAttributes()
String
getTenantAttribute()
Collection<OAuth2MapperProperties.UserDefinitionGroupMapping>
getUserDefinitionGroupMappings()
String
getUserDefinitionKeyAttribute()
boolean
isLoadAuthoritiesFromIdentityService()
void
setAuthoritiesAttributes(Collection<String> authoritiesAttributes)
void
setDefaultUserDefinitionKey(String defaultUserDefinitionKey)
void
setGroupsAttributes(Collection<String> groupsAttributes)
void
setLoadAuthoritiesFromIdentityService(boolean loadAuthoritiesFromIdentityService)
void
setTenantAttribute(String tenantAttribute)
void
setUserDefinitionGroupMappings(Collection<OAuth2MapperProperties.UserDefinitionGroupMapping> userDefinitionGroupMappings)
void
setUserDefinitionKeyAttribute(String userDefinitionKeyAttribute)
-
-
-
Field Detail
-
authoritiesAttributes
protected Collection<String> authoritiesAttributes
The name of the attributes from which authorities should be extracted from without any changes.
-
groupsAttributes
protected Collection<String> groupsAttributes
The name of the attributes from which groups should be extracted from and converter to Flowable Groups.
-
tenantAttribute
protected String tenantAttribute
The name of the attribute that holds the tenant id for the authentication.
-
userDefinitionKeyAttribute
protected String userDefinitionKeyAttribute
The name of the attribute that holds the user definition key attribute for the authentication.
-
loadAuthoritiesFromIdentityService
protected boolean loadAuthoritiesFromIdentityService
Enables the loading from the platform user. This might impact the performance of the user sign-in depending on the speed of your PlatformIdentityService and the backed service (e.g. LDAP).
-
defaultUserDefinitionKey
protected String defaultUserDefinitionKey
The default user definition key that should be used when unable to derive user definition.
-
userDefinitionGroupMappings
protected Collection<OAuth2MapperProperties.UserDefinitionGroupMapping> userDefinitionGroupMappings
Mapping a group key and a user definition. The order of the entries is important, the first matching group will be used for the user definition key.
-
-
Method Detail
-
getAuthoritiesAttributes
public Collection<String> getAuthoritiesAttributes()
-
setAuthoritiesAttributes
public void setAuthoritiesAttributes(Collection<String> authoritiesAttributes)
-
getGroupsAttributes
public Collection<String> getGroupsAttributes()
-
setGroupsAttributes
public void setGroupsAttributes(Collection<String> groupsAttributes)
-
getTenantAttribute
public String getTenantAttribute()
-
setTenantAttribute
public void setTenantAttribute(String tenantAttribute)
-
getUserDefinitionKeyAttribute
public String getUserDefinitionKeyAttribute()
-
setUserDefinitionKeyAttribute
public void setUserDefinitionKeyAttribute(String userDefinitionKeyAttribute)
-
isLoadAuthoritiesFromIdentityService
public boolean isLoadAuthoritiesFromIdentityService()
-
setLoadAuthoritiesFromIdentityService
public void setLoadAuthoritiesFromIdentityService(boolean loadAuthoritiesFromIdentityService)
-
getDefaultUserDefinitionKey
public String getDefaultUserDefinitionKey()
-
setDefaultUserDefinitionKey
public void setDefaultUserDefinitionKey(String defaultUserDefinitionKey)
-
getUserDefinitionGroupMappings
public Collection<OAuth2MapperProperties.UserDefinitionGroupMapping> getUserDefinitionGroupMappings()
-
setUserDefinitionGroupMappings
public void setUserDefinitionGroupMappings(Collection<OAuth2MapperProperties.UserDefinitionGroupMapping> userDefinitionGroupMappings)
-
-