Installing the ASP.NET Identity NuGet packages
We have created an Empty Web API Web Application. Now we need to install the required NuGet packages in order to integrate ASP.NET Identity into Web API. Let's execute the following statements under the NuGet package manager console to install the ASP.NET Identity 2.1 package to the created application:
Install-Package Microsoft.AspNet.Identity.Core Install-Package Microsoft.AspNet.Identity.EntityFramework Install-Package Microsoft.AspNet.Identity.OWIN Install-Package Microsoft.OWIN.Cors Install-Package Microsoft.AspNet.WebApi.OWIN Install-Package Microsoft.OWIN.Security.OAuth
We can also install ASP.NET Identity 2.1 using a UI-based Nuget package manager as given in the following screenshot:
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.