Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

url encode parts of HMAC-SHA1 key , as required by http://tools.ietf.…

  • Loading branch information...
commit fec18b84edc114d68be2ad94c963cb3166818d32 1 parent 0e867f3
@giladbu giladbu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/java/org/scribe/oauth/OAuthSigner.java
View
2  src/main/java/org/scribe/oauth/OAuthSigner.java
@@ -67,7 +67,7 @@ public String getOAuthHeader(Request request, String toSign, String tokenSecret,
}
public String getSignature(String toSign, String tokenSecret){
- return HMAC.sign(toSign, consumerSecret + '&' + tokenSecret);
+ return HMAC.sign(toSign, URL.percentEncode(consumerSecret) + '&' + URL.percentEncode(tokenSecret));
}
public String getStringToSign(Request request, CallType type){
Please sign in to comment.
Something went wrong with that request. Please try again.