You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/04/16 20:04:37 UTC
[39/58] [abbrv] incubator-usergrid git commit: USERGRID-457 - Add
explicit Content-Length of 0 for POST request with no body.
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
Commit: 451dc0b9fd4d39f5f9c0744de275aae89e9212af
Parents: da9f3c8
Author: Michael Russo <mr...@apigee.com>
Authored: Thu Mar 19 20:12:45 2015 -0700
Committer: Todd Nine <tn...@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>();