Create an OAuth 2.0 Service Provider Using DotNetOpenAuth

I am creating a web application that will have an api and authorization service using DotNetOpenAuth. I found this example on how you can allow the use of a service provider that already exists, but I would like to give an example of how to implement a service provider that can create tokens, save them and make an assessment. Are there any great articles or sample suppliers that I can download?

+7
source share
3 answers

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

+16
source

Below is a complete working example for DotNetOpenAuth - https://github.com/DotNetOpenAuth/DotNetOpenAuth/tree/master/samples

+2
source

I tried many times with DNOA .... had to give up, but documented my findings (eventually used Thinktecture) ... http://tb-it.blogspot.co.nz/2015/06/oauth-20- frameworks-and-platforms.html

+1
source

All Articles