Permalink
Browse files

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

  • Loading branch information...
1 parent 0e867f3 commit fec18b84edc114d68be2ad94c963cb3166818d32 @giladbu giladbu committed Jun 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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){

0 comments on commit fec18b8

Please sign in to comment.