What is the best OAuth2 C# library? [closed]
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?
Solution 1:
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:
You should look on OAuth2. It is .NET implementation of OAuth 1.0 and OAuth 2.0 protocol for most of the popular providers:
- foursquare
- linked-in
- windows live
- vkontakte
- odnoklassniki
- yandex
- mail.ru
- github
Nuget package is there.
Solution 3:
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:
I would look at the Hammock REST client library. It is general purpose REST client, but it provides OAuth support as well.