usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject [40/68] [abbrv] incubator-usergrid git commit: USERGRID-457 - Add explicit Content-Length of 0 for POST request with no body.
Date Fri, 17 Apr 2015 22:47:45 GMT
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/451dc0b9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/451dc0b9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/451dc0b9

Branch: refs/heads/two-dot-o-dev
Commit: 451dc0b9fd4d39f5f9c0744de275aae89e9212af
Parents: da9f3c8
Author: Michael Russo <mrusso@apigee.com>
Authored: Thu Mar 19 20:12:45 2015 -0700
Committer: Todd Nine <tnine@apigee.com>
Committed: Fri Mar 20 07:14:41 2015 -0600

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


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/451dc0b9/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 0f348e4..cc2fe6f 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
@@ -126,12 +126,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" ).getTextValue();
 
         Map<String, Object> userMap = new HashMap<String, Object>();


Mime
View raw message