public class CloudFoundryDataflowAuthoritiesExtractor extends Object implements org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor
AuthoritiesExtractor
will assign all
CoreSecurityRoles
to the authenticated OAuth2 user IF the user is a "Space
Developer" in Cloud Foundry.Constructor and Description |
---|
CloudFoundryDataflowAuthoritiesExtractor(CloudFoundrySecurityService cloudFoundrySecurityService) |
Modifier and Type | Method and Description |
---|---|
List<org.springframework.security.core.GrantedAuthority> |
extractAuthorities(Map<String,Object> map)
|
public CloudFoundryDataflowAuthoritiesExtractor(CloudFoundrySecurityService cloudFoundrySecurityService)
public List<org.springframework.security.core.GrantedAuthority> extractAuthorities(Map<String,Object> map)
List
of GrantedAuthority
s contains all roles from
CoreSecurityRoles
. The roles are prefixed with the value specified in
GrantedAuthorityDefaults
.extractAuthorities
in interface org.springframework.boot.autoconfigure.security.oauth2.resource.AuthoritiesExtractor
map
- Must not be null. Is only used for loggingCopyright © 2019 Pivotal Software, Inc.. All rights reserved.