Name: spring-cloud-sso-connector
Owner: Pivotal Cloud Foundry
Description: null
Created: 2015-09-01 18:35:59.0
Updated: 2018-04-24 23:47:21.0
Pushed: 2018-04-26 19:12:14.0
Homepage: null
Size: 173
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Spring Cloud Connector for use with the Pivotal Single Sign-On Service on Cloud Foundry
Spring Applications can use this connector to auto-configure its OAuth 2.0 client which enables the application with the Pivotal Single Sign-On Service
This service provides the following properties to your spring application:
Property Name | Value ————– | —— ssoServiceUrl | e.g. https://login.run.pivotal.io security.oauth2.client.clientId | client_id security.oauth2.client.clientSecret | client_secret security.oauth2.client.userAuthorizationUri | {ssoServiceUrl}/oauth/authorize security.oauth2.client.accessTokenUri | {ssoServiceUrl}/oauth/token security.oauth2.resource.userInfoUri | {ssoServiceUrl}/userinfo security.oauth2.resource.tokenInfoUri | {ssoServiceUrl}/check_token security.oauth2.resource.jwk.key-set-uri | {ssoServiceUrl}/token_keys
Note: ssoServiceUrl refers to the service uri corresponding to a Pivotal Single Sign-On service plan. For more information on configuring a service plan please refer to http://docs.pivotal.io/p-identity/index.html#create-plan
Applications can use this connector to access the information in VCAP_SERVICES
environment variable, necessary to configure single sign-on.
dFactory cloudFactory = new CloudFactory();
d cloud = cloudFactory.getCloud();
erviceInfo ssoService = (SsoServiceInfo) cloud.getServiceInfo("p-identity");
ervice.getClientId()
ervice.getClientSecret();
ervice.getAuthDomain();
Sample apps using this connector are available at https://github.com/pivotal-cf/identity-sample-apps