Skip to content

Instantly share code, notes, and snippets.

@mwanji
Created October 5, 2012 10:44
Show Gist options
  • Save mwanji/3839210 to your computer and use it in GitHub Desktop.
Save mwanji/3839210 to your computer and use it in GitHub Desktop.
OAuth HMAC signing debugging
timestamp=1349386748510
nonce=kaauue7k
method=POST
uri=/apps/ztfqej/authorizations
host=javaapiclient.tent.is
port=443
mac_key=d9ab6f3b87a8026e54aa5c971bd39e7c
mac_key_id=a:f6f0695f
What the Tent Ruby client says I should get:
MAC id="a:f6f0695f", ts="1349386748510", nonce="kaauue7k", mac="zYSpD2KcRVmS+i2RBXwvUywi+AnmiO+FupqMaRFcUf8="
What I actually get:
MAC id="a:f6f0695f", ts="1349386748510", nonce="kaauue7k", mac="Cgk96OkAaPy9Vp9Pge2bJu07qi2C/zQT6KWm0Z+7z7w="
The implementation code is here: https://github.com/mwanji/tent-client-java/blob/master/src/main/java/com/moandjiezana/tent/oauth/RequestSigner.java#L13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment