Skip to content

Commit ed91c22

Browse files
cbguderPriyata25
authored andcommitted
Bring back support for AUTH_SERVER to resource-server
[#149947251] https://www.pivotaltracker.com/story/show/149947251 Signed-off-by: Priyata Agrawal <[email protected]>
1 parent 6c252bd commit ed91c22

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ As an alternative to Steps 1 and 2 above, you can also quickly deploy the authco
3737

3838
1. First, make sure you created a [Service Plan](https://docs.pivotal.io/p-identity/manage-service-plans.html) for your Org as well as a [Service Instance](https://docs.pivotal.io/p-identity/manage-service-instances.html) named `sample-instance` for your Space, and login via CF CLI as a Space Developer into the required Org and Space.
3939

40-
2. Replace `manifest.yml` with `manifest.yml.quick-start` for the *authcode* and *resource-server* projects and update the `RESOURCE_URL` and `AUTH_URL` values in the manifest with your plan and domain values.
40+
2. Replace `manifest.yml` with `manifest.yml.quick-start` for the *authcode* and *resource-server* projects and update the `RESOURCE_URL` and `AUTH_SERVER` values in the manifest with your plan and domain values.
4141

4242
3. Build (`./gradlew build`) and push (`cf push`) both the *authcode* and *resource-server* projects to your Space where you are logged in as a Space Developer.
4343

@@ -51,7 +51,7 @@ The sample application and resource server be available immediately bound to the
5151
The resource server needs to know the Auth Server (or UAA) location in order to retrieve the token key to validate the tokens.
5252
Change `AUTH_SERVER` in `manifest.yml` to point to your UAA instance.
5353

54-
NOTE: Beginning with our Spring Boot 1.5 version of the identity sample applications, bind the Resource Server to the Singl†e Sign-On Service instead of providing the AUTH_SERVER value.
54+
cf set-env <RESOURCE_SERVER_APP_NAME> AUTH_SERVER <AUTH_SERVER_LOCATION>
5555

5656
For example, for a given SSO service plan/UAA identity zone, the location would be `https://subdomain.login.my-domain.org`
5757

Diff for: resource-server/src/main/resources/application.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ security:
1212
basic:
1313
enabled: false
1414
require_ssl: false
15-
15+
oauth2:
16+
resource:
17+
preferTokenInfo: false
18+
userInfoUri: ${AUTH_SERVER}/userinfo
19+
tokenInfoUri: ${AUTH_SERVER}/check_token
20+
jwk:
21+
key-set-uri: ${AUTH_SERVER}/token_keys
22+
ssoServiceUrl: ${AUTH_SERVER}
1623
logging.level:
1724
org.springframework.security: DEBUG

0 commit comments

Comments
 (0)