Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re-added scope to Oauth20ServiceImpl.getAccessToken().

  • Loading branch information...
commit 0e2cf01cfdb7126e654821a64b4e6b5fbd7814b8 1 parent 515e726
@tfredrich tfredrich authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/java/org/scribe/oauth/OAuth20ServiceImpl.java
View
2  src/main/java/org/scribe/oauth/OAuth20ServiceImpl.java
@@ -32,7 +32,7 @@ public Token getAccessToken(Token requestToken, Verifier verifier)
request.addQuerystringParameter(OAuthConstants.CLIENT_SECRET, config.getApiSecret());
request.addQuerystringParameter(OAuthConstants.CODE, verifier.getValue());
request.addQuerystringParameter(OAuthConstants.REDIRECT_URI, config.getCallback());
-// if (config.hasScope()) request.addQuerystringParameter(OAuthConstants.SCOPE, config.getScope());
+ if (config.hasScope()) request.addQuerystringParameter(OAuthConstants.SCOPE, config.getScope());
if (config.hasGrantType()) request.addQuerystringParameter(OAuthConstants.GRANT_TYPE, config.getGrantType());
Response response = request.send();
return api.getAccessTokenExtractor().extract(response.getBody());
Please sign in to comment.
Something went wrong with that request. Please try again.