Looking for a programmer that can help me with OAuth Tokens

Status
Not open for further replies.

hpv222

Power Member
Joined
Feb 8, 2010
Messages
751
Reaction score
279
Specifically MAC Tokens. After doing tons of reading, I'm 99% sure that the token I need is generated this way:

String:
The timestamp
The nonce
The HTTP request method in uppercase
The full HTTP request URI
The hostname
The port

MAC key (got it)

Then I need to sign the string with the MAC key, using the sha-256 algorithm and base64 encoding it.

Another version I saw was:
The timestamp
The nonce
The HTTP request method in uppercase
The URI PathAndQuery
The hostname
The port

Tried both and can't seem to get it right. If you have coded something like this and want to help, PM me and we can also get on Skype and chat. I will pay for your time.

Thank you
 
Depending on what language you're using, try to search for some libraries, that have functions already built for doing this, by giving them the needed parameters, instead of appending the strings, hashing and base64 encoding it yourself.
 
I code in C# and I already tested every single piece of code I could get my hands on. I took the example from here:
https://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-02
^^ Just scroll down to "MAC key: 489dks293j39"

and run it gazillion times, still not getting the expected result, "bhCQXTVyfj5cmA9uKkPFx1zeOXM="

This site seems to be getting it right though:
http://hash.online-convert.com/sha1-generator

However, that doesn't help me much. If anybody has the C# method, PM me and we can talk.

Thank you
 
I've got OAuth done in Java, please add me on Skype.
 
Write that part in a language that has a sufficient wrapper would be my only advice.

im on my phone I'll check out what you mean when I get home
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top