From the course: Building and Securing RESTful APIs in ASP.NET Core

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add OpenIddict

Add OpenIddict - ASP.NET Core Tutorial

From the course: Building and Securing RESTful APIs in ASP.NET Core

Start my 1-month free trial

Add OpenIddict

- [Instructor] ASP.NET Core identity helps you manage the user and the role entities in the data base. And I can also support cookie base authentication. But it doesn't provide any way for users to get a token from the server. There are a number of token authentication packages that add this functionality to ASP.NET Core applications. And the one I'll use here is called OpenIddict. OpenIddict is a lightweight OpenID Connect authorization server that plugs into ASP.NET Core Identity and entity framework core. Although you can use it with other identity systems and data bases as well. It's easy to set up and it supports the token flows that we need. The project itself is open source and it's in the release candidate stage at the time of this recording. I'll use the NuGet package manager to install it in my project. There's a couple packages I need. If I search for OpenIddict right now I need to pick the include prerelease check box 'cause it's currently in the release candidate stage…

Contents