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 - ASP.NET Core Tutorial
From the course: Building and Securing RESTful APIs in ASP.NET Core
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
How HTTP authentication works3m 39s
-
(Locked)
Authentication for REST APIs3m 21s
-
(Locked)
Add Identity4m 51s
-
(Locked)
Add a test user3m 21s
-
(Locked)
Create a users collection5m 45s
-
(Locked)
Create a registration route6m 9s
-
(Locked)
Add OpenIddict4m 12s
-
(Locked)
Add a token endpoint2m 6s
-
(Locked)
Create a UserInfo route5m 28s
-
(Locked)
More about OpenID Connect2m 59s
-
(Locked)
Authorization using policies5m 19s
-
(Locked)
-