public class CloudFoundryDataflowAuthoritiesMapper extends Object implements org.springframework.cloud.common.security.support.AuthoritiesMapper
AuthoritiesMapper will assign all
CoreSecurityRoles to the authenticated OAuth2 user IF the user is a "Space
Developer" in Cloud Foundry.| Constructor and Description |
|---|
CloudFoundryDataflowAuthoritiesMapper(CloudFoundrySecurityService cloudFoundrySecurityService) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.springframework.security.core.GrantedAuthority> |
mapScopesToAuthorities(Set<String> scopes)
|
Set<org.springframework.security.core.GrantedAuthority> |
mapScopesToAuthorities(String providerId,
Set<String> scopes) |
public CloudFoundryDataflowAuthoritiesMapper(CloudFoundrySecurityService cloudFoundrySecurityService)
public Set<org.springframework.security.core.GrantedAuthority> mapScopesToAuthorities(Set<String> scopes)
List of GrantedAuthoritys contains all roles from
CoreSecurityRoles. The roles are prefixed with the value specified in
GrantedAuthorityDefaults.mapScopesToAuthorities in interface org.springframework.cloud.common.security.support.AuthoritiesMappermap - Must not be null. Is only used for loggingCopyright © 2019 Pivotal Software, Inc.. All rights reserved.