1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Looking for a programmer that can help me with OAuth Tokens

Discussion in 'Hire a Freelancer' started by hpv222, Oct 1, 2015.

  1. hpv222

    hpv222 Power Member

    Joined:
    Feb 8, 2010
    Messages:
    738
    Likes Received:
    275
    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
     
  2. handmadebots

    handmadebots Senior Member

    Joined:
    Nov 8, 2012
    Messages:
    962
    Likes Received:
    217
    Home Page:
    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.
     
  3. hpv222

    hpv222 Power Member

    Joined:
    Feb 8, 2010
    Messages:
    738
    Likes Received:
    275
    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
     
  4. katona44

    katona44 Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 28, 2009
    Messages:
    686
    Likes Received:
    309
    I've got OAuth done in Java, please add me on Skype.
     
  5. TeamSocial

    TeamSocial Junior Member

    Joined:
    Jun 15, 2014
    Messages:
    130
    Likes Received:
    41
    Gender:
    Male
    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