Chapter 3. Integrating ASP.NET Identity System with Web API

This chapter practically explains how to integrate ASP.NET Identity system with ASP.NET Web API. The ASP.NET Identity system is an upgrade to the ASP.NET Membership and Simple Membership systems. It has user profile support, OAuth integration and is available in the ASP.NET templates of Visual Studio 2013/2015.

In this chapter, we will cover the following topics:

  • Creating an empty Web API application
  • Installing the ASP.NET Identity NuGet packages
  • Setting up the ASP.NET Identity 2.1
  • Defining Web API controllers and methods

Creating an Empty Web API Application

Let's create an empty Web API to integrate ASP.NET Identity. Follow the given steps:

  1. Create New Project from the Start page in Visual Studio. ...

Get ASP.NET Web API Security Essentials 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.