@Configuration @Conditional(value=org.springframework.cloud.dataflow.server.config.security.support.OnSecurityEnabledAndOAuth2Enabled.class) @ConditionalOnCloudPlatform(value=CLOUD_FOUNDRY) @Import(value=CloudFoundryOAuthSecurityConfiguration.CloudFoundryUAAConfiguration.class) public class CloudFoundryOAuthSecurityConfiguration extends Object
Configuration
class will reconfigure
Spring Cloud Data Flow's security setup in OAuthSecurityConfiguration
, so that
only users with the CF_SPACE_DEVELOPER_ROLE} can access the REST APIs.
Therefore, this configuration will ensure that only Cloud Foundry
Space Developers
have access to the underlying REST API's.
For this to happen, a REST call will be made to the Cloud Foundry Permissions API via
CloudFoundrySecurityService inside the DefaultDataflowAuthoritiesExtractor
.
If the user has the respective permissions, the CF_SPACE_DEVELOPER_ROLE will be assigned to the user.
See also: https://apidocs.cloudfoundry.org/258/apps/retrieving_permissions_on_a_app.html
Modifier and Type | Class and Description |
---|---|
class |
CloudFoundryOAuthSecurityConfiguration.CloudFoundryUAAConfiguration |
Constructor and Description |
---|
CloudFoundryOAuthSecurityConfiguration() |
public CloudFoundryOAuthSecurityConfiguration()
@PostConstruct public void init()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.