What is the best OAuth2 C# library?

C#.Netasp.net.Net 3.5Oauth

C# Problem Overview


It seems like many app providers are using OAuth2 to allow API access, such as Twitter and Facebook. Does anyone use a good library to do OAuth2 processing that is general enough to use across all applications?

C# Solutions


Solution 1 - C#

I didn't look into it's internals (source code link is broken), but in general DotNetOpenAuth seems to be quite professional.

Update: OAuth 2 and OpenID are now supported as well.

Solution 2 - C#

You should look on OAuth2. It is .NET implementation of OAuth 1.0 and OAuth 2.0 protocol for most of the popular providers:

  • google
  • facebook
  • twitter
  • foursquare
  • instagram
  • linked-in
  • windows live
  • vkontakte
  • odnoklassniki
  • yandex
  • mail.ru
  • github

Nuget package is there.

Solution 3 - C#

I haven't seen any good frameworks out there yet for OAuth2. I've decided to try and roll my own for a project.

My framework so far supports bearer tokens and all of the oauth 2 flows (challenge/response, implicit, client credential, resource owner password, and refresh token).

It's a little clunky, and I'm working on my first REST service built on this framework.

Check it out, any feedback or contributions would be appreciated.

https://github.com/ghorsey/SharpOAuth2

Solution 4 - C#

I would look at the Hammock REST client library. It is general purpose REST client, but it provides OAuth support as well.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTruMan1View Question on Stackoverflow
Solution 1 - C#Eugene Mayevski 'CallbackView Answer on Stackoverflow
Solution 2 - C#Andrew SemackView Answer on Stackoverflow
Solution 3 - C#GeoffView Answer on Stackoverflow
Solution 4 - C#Eric HauserView Answer on Stackoverflow