pivotal-cf/spring-cloud-sso-connector

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Spring Cloud Single Sign-On Connector

Spring Cloud Connector for use with the Pivotal Single Sign-On Service on Cloud Foundry

Spring Applications

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

Java Applications

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

Sample apps using this connector are available at https://github.com/pivotal-cf/identity-sample-apps


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.