usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject incubator-usergrid git commit: USERGRID-457 - Add explicit Content-Length of 0 for POST request with no body.
Date Fri, 20 Mar 2015 13:11:51 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o 61c5f9cca -> 5937f9fb0


USERGRID-457 - Add explicit Content-Length of 0 for POST request with no body.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/5937f9fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/5937f9fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/5937f9fb

Branch: refs/heads/two-dot-o
Commit: 5937f9fb0618d1f1ca38e817b14c7e25cf8b7bd7
Parents: 61c5f9c
Author: Michael Russo <mrusso@apigee.com>
Authored: Thu Mar 19 20:12:45 2015 -0700
Committer: Michael Russo <mrusso@apigee.com>
Committed: Thu Mar 19 20:17:46 2015 -0700

----------------------------------------------------------------------
 .../usergrid/security/providers/PingIdentityProvider.java       | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/5937f9fb/stack/services/src/main/java/org/apache/usergrid/security/providers/PingIdentityProvider.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/security/providers/PingIdentityProvider.java
b/stack/services/src/main/java/org/apache/usergrid/security/providers/PingIdentityProvider.java
index 34d9b80..3c8d209 100644
--- a/stack/services/src/main/java/org/apache/usergrid/security/providers/PingIdentityProvider.java
+++ b/stack/services/src/main/java/org/apache/usergrid/security/providers/PingIdentityProvider.java
@@ -127,12 +127,9 @@ public class PingIdentityProvider extends AbstractProvider {
                               .queryParam( "grant_type", "urn:pingidentity.com:oauth2:grant_type:validate_bearer"
)
                               .queryParam( "client_secret", clientSecret ).queryParam( "client_id",
clientId )
                               .queryParam( "token", externalToken ).type( MediaType.APPLICATION_FORM_URLENCODED_TYPE
)
+                              .header("Content-Length", "0")
                               .post( JsonNode.class );
 
-        // {"token_type":"urn:pingidentity.com:oauth2:validated_token","expires_in":5383,
-        // "client_id":"dev.app.appservices","access_token":{"subject":"svccastiron@burberry.com",
-        // "client_id":"dev.app.appservices"}}
-
         String rawEmail = node.get( "access_token" ).get( "subject" ).asText();
 
         Map<String, Object> userMap = new HashMap<String, Object>();


Mime
View raw message