Skip to content

Commit

Permalink
Update OAuthSimple.py
Browse files Browse the repository at this point in the history
Making signature base string generation according to RFC 5849 (http://tools.ietf.org/html/rfc5849)
  • Loading branch information
MarkoVcode committed Jan 13, 2015
1 parent 8c85c50 commit 258c956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/OAuthSimple/OAuthSimple.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _generateSignature(self, normParamString):
elif (self._parameters['oauth_signature_method'] == 'HMAC-SHA1'):
self.sbs = '&'.join([self._oauthEscape(self._action),
self._oauthEscape(self._path),
normParamString])
self._oauthEscape(normParamString)])
return base64.b64encode(hmac.new(secretKey,
self.sbs,
hashlib.sha1).digest())

0 comments on commit 258c956

Please sign in to comment.