OAuth in C# as a client

Posted by Redth on Stack Overflow See other posts from Stack Overflow or by Redth
Published on 2010-05-12T19:20:58Z Indexed on 2010/05/12 19:24 UTC
Read the original article Hit count: 834

Filed under:
|
|

Hi,

I've been given 6 bits of information to access some data from a website:

  1. Website Json Url (eg: http://somesite.com/items/list.json)
  2. OAuth Authorization Url (eg: http://somesite.com/oauth/authorization)
  3. OAuth Request Url (eg: http://somesite.com/oauth/request)
  4. OAuth Access Url (eg: http://somesite.com/oauth/access)
  5. Client Key (eg: 12345678)
  6. Client Secret (eg: abcdefghijklmnop)

Now, I've looked at DotNetOpenAuth and OAuth.NET libraries, and while I'm sure they are very capable of doing what I need, I just can't figure out how to use either in this way.

Could someone post some sample code of how to consume the Url (Point 1.) in either library (or any other way that may work just as well)?

Thanks!

© Stack Overflow or respective owner

Related posts about oauth

Related posts about c#