OAuth 2.0 Using DotNetOpenAuth
In this chapter, we implement OAuth 2.0–based authorization in ASP.NET Web API using DotNetOpenAuth (DNOA). DotNetOpenAuth (http://www.dotnetopenauth.net/) is a well-established open source .NET Framework library that can help you implement production-grade OAuth 2.0–based authorization for your web API.
DNOA provides a nice API for you to work with as you implement OAuth 2.0. There are classes available to represent the OAuth 2.0 roles of resource server, authorization server, and client: ResourceServer, AuthorizationServer, and WebServerClient, respectively. These classes provide you with methods that ...