CHAPTER 13

image

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 ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.