Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement OAuth2 provider and consumer in C# .NET

I have been doing a bit of searching around on oauth2 and think it may be a good fit for some WCF rest services I am building out that will be consumed by some WPF apps and MVC web apps. The idea would be that the user is initially asked to login with their username / password and receives an access token which gives them access to the aforementioned resource(s).

Searching around here on SO I have not found much information on oauth2 except for a few consumer related questions to facebook etc.

I'm wondering if anybody can provide some tips on implementing oauth2 (or knows of any good resources). I am interested in both the provider (authenticating and issuing access tokens) as well as the client/consumer end.

.NET OAuth2 Libraries

The only OAuth2 library I found is from dotnetopenauth which also seems to be heavily into openid. At this stage I'd rather a library that is a little lighter and just emcompasses oauth2

Are there any other oauth2 libraries available yet?

like image 399
Joshua Hayes Avatar asked Aug 29 '10 23:08

Joshua Hayes


1 Answers

There's OAuth .NET

like image 60
Alex Avatar answered Oct 11 '22 12:10

Alex