Update
DotNetOpenAuth has moved as it was originally published. I highly recommend you follow Ashish's advice and take a look at the samples. It contains code to record authorization servers, resource servers, and clients for all major threads.
If you need a pre-built solution with open source code
Thinktecture Identity Server is an open source .NET token service. It supports multiple authentication endpoints, including OAuth 2.0 token tokens.
An update to this Thinktecture authentication server is now on version 2 and supports these OAuth 2.0 streams.
- Resource Owner Credential Password
- Implicate Stream and JavaScript
- Authorization Code Stream
take a look at the code again to see how it was all done, and there are examples here to show how to defer it.
Hope this helps - this library and examples have helped us a lot over the past few months.
Update
There is also another warning example , it looks deprecated as a simple OAuth provider for MVC here. Sample code here
Mark jones
source share