OAuth 2.0 Using DotNetOpenAuth

In this chapter, we implement OAuth 2.0–based authorization in ASP.NET Web API using DotNetOpenAuth (DNOA). DotNetOpenAuth ( 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 ...

Get Pro ASP.NET Web API Security: Securing ASP.NET Web API now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.