From 57c791e2089a18b1ec32d05ab80684dde2d7d2eb Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 27 Aug 2015 11:32:59 +0100 Subject: [PATCH] Use corrrect key for authorization URI --- .../VcapServiceCredentialsEnvironmentPostProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-cloudfoundry-web/src/main/java/org/springframework/cloud/cloudfoundry/environment/VcapServiceCredentialsEnvironmentPostProcessor.java b/spring-cloud-cloudfoundry-web/src/main/java/org/springframework/cloud/cloudfoundry/environment/VcapServiceCredentialsEnvironmentPostProcessor.java index f2201ec..02272a1 100644 --- a/spring-cloud-cloudfoundry-web/src/main/java/org/springframework/cloud/cloudfoundry/environment/VcapServiceCredentialsEnvironmentPostProcessor.java +++ b/spring-cloud-cloudfoundry-web/src/main/java/org/springframework/cloud/cloudfoundry/environment/VcapServiceCredentialsEnvironmentPostProcessor.java @@ -69,7 +69,7 @@ implements EnvironmentPostProcessor, Ordered { source.put("security.oauth2.resource.keyUri", authDomain + "/token_key"); source.put("security.oauth2.client.accessTokenUri", authDomain + "/oauth/token"); - source.put("security.oauth2.client.authorizationUri", + source.put("security.oauth2.client.userAuthorizationUri", authDomain + "/oauth/authorization"); } else { @@ -78,7 +78,7 @@ implements EnvironmentPostProcessor, Ordered { addProperty(source, resolver, serviceId, "resource", "keyUri"); addProperty(source, resolver, serviceId, "resource", "keyValue"); addProperty(source, resolver, serviceId, "client", "accessTokenUri", "tokenUri"); - addProperty(source, resolver, serviceId, "client", "authorizationUri"); + addProperty(source, resolver, serviceId, "client", "userAuthorizationUri", "authorizationUri"); } addProperty(source, resolver, serviceId, "client", "clientId"); addProperty(source, resolver, serviceId, "client", "clientSecret");