Spring Cloud SSO Connector

Spring Cloud Connector Extension for Single Sign-On Service on Pivotal Cloud Foundry

License

License

GroupId

GroupId

io.pivotal.spring.cloud
ArtifactId

ArtifactId

spring-cloud-sso-connector
Last Version

Last Version

2.1.3.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Cloud SSO Connector
Spring Cloud Connector Extension for Single Sign-On Service on Pivotal Cloud Foundry
Project URL

Project URL

https://github.com/pivotal-cf/spring-cloud-sso-connector/
Source Code Management

Source Code Management

https://github.com/pivotal-cf/spring-cloud-sso-connector/

Download spring-cloud-sso-connector

How to add to project

<!-- https://jarcasting.com/artifacts/io.pivotal.spring.cloud/spring-cloud-sso-connector/ -->
<dependency>
    <groupId>io.pivotal.spring.cloud</groupId>
    <artifactId>spring-cloud-sso-connector</artifactId>
    <version>2.1.3.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/io.pivotal.spring.cloud/spring-cloud-sso-connector/
implementation 'io.pivotal.spring.cloud:spring-cloud-sso-connector:2.1.3.RELEASE'
// https://jarcasting.com/artifacts/io.pivotal.spring.cloud/spring-cloud-sso-connector/
implementation ("io.pivotal.spring.cloud:spring-cloud-sso-connector:2.1.3.RELEASE")
'io.pivotal.spring.cloud:spring-cloud-sso-connector:jar:2.1.3.RELEASE'
<dependency org="io.pivotal.spring.cloud" name="spring-cloud-sso-connector" rev="2.1.3.RELEASE">
  <artifact name="spring-cloud-sso-connector" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.pivotal.spring.cloud', module='spring-cloud-sso-connector', version='2.1.3.RELEASE')
)
libraryDependencies += "io.pivotal.spring.cloud" % "spring-cloud-sso-connector" % "2.1.3.RELEASE"
[io.pivotal.spring.cloud/spring-cloud-sso-connector "2.1.3.RELEASE"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.cloud : spring-cloud-starter-oauth2 jar
org.springframework.security.oauth : spring-security-oauth2 jar 2.2.0.RELEASE
org.springframework.cloud : spring-cloud-spring-service-connector jar
org.springframework.cloud : spring-cloud-cloudfoundry-connector jar

Project Modules

There are no modules declared in this project.

WARNING: This library is only compatible with Spring Boot 1.5 and Spring Security 2. If you are looking for a library that supports Spring Boot 2.1+ and Spring Security 5+, please refer to Java CFEnv and the updated identity-sample-apps

#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.

CloudFactory cloudFactory = new CloudFactory();
Cloud cloud = cloudFactory.getCloud();
SsoServiceInfo ssoService = (SsoServiceInfo) cloud.getServiceInfo("p-identity");
ssoService.getClientId()
ssoService.getClientSecret();
ssoService.getAuthDomain();

Sample Apps

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

io.pivotal.spring.cloud

Pivotal Cloud Foundry

Versions

Version
2.1.3.RELEASE
2.1.2.RELEASE
2.1.1.RELEASE
2.1.0.RELEASE
2.0.0.RELEASE
1.1.0.RELEASE
1.0.2.RELEASE
1.0.0.RC3