From the course: Advanced Web APIs with ASP.NET Core 8
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Adding ASP.NET Core Identity - ASP.NET Core Tutorial
From the course: Advanced Web APIs with ASP.NET Core 8
Adding ASP.NET Core Identity
- [Instructor] So far, everyone may call our APIs. Therefore the next step will be to restrict it a little bit. However, in order to be able to implement that, we need some preparations. We will be using something called ASP.NET Core identity, which is built into ASP.NET Core. That's a mechanism for logging users in and out for registering them, including UI for those tasks and also management UI where we can edit users, activate two-factor authentication and more. What you usually do is something like this, you would create a new project and we start with a web project here as well. And in that wizard, in the second step we have this authentication type dropdown list. And by default we are using none. But we could also pick individual accounts and then the application would be prepared for this kind of feature. If you're using the .NET CLI, of course there's also a cmdlet switch for setting the authentication type. We could do that, but I'd like to show you how we can add that…
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)
Introduction: Securing APIs33s
-
(Locked)
Redirecting to HTTPS3m 48s
-
(Locked)
Enforcing HTTPS3m 57s
-
(Locked)
Consuming the API with JavaScript7m 32s
-
(Locked)
Cross-origin resource sharing (CORS)3m 42s
-
(Locked)
Enabling CORS5m 32s
-
(Locked)
Adding ASP.NET Core Identity9m 34s
-
(Locked)
Adding token authentication8m 42s
-
(Locked)
-