From the course: ASP.NET Core: Token-Based Authentication
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Adding default identity tables using EF Core - ASP.NET Core Tutorial
From the course: ASP.NET Core: Token-Based Authentication
Adding default identity tables using EF Core
- [Instructor] On this part, you'll learn how to add the default identity framework tables using the Entity Framework Core. To add these tables to the database, you can just use the identity frameworks models and properties. But with the Entity Framework Core, it is possible to inherit from one of the identity models and add custom properties, which are going to be translated as custom columns in the database. Now, let us to go to Visual Studio and see it in action. The first thing that we are going to do in Visual Studio is that we are going to create a custom model and inherit from the identity user base class. Then we are going to add a custom property. And we are going to see how this custom property creates a custom column in the SQL Server database that we created on the last part. So for that, let us go to the Solution Explorer. And then inside the data folder, we are going to create a new folder. We're going to…
Contents
-
-
-
-
(Locked)
Setting up Entity Framework Core8m 44s
-
(Locked)
Adding default identity tables using EF Core8m 51s
-
Configuring token-based authentication9m 38s
-
(Locked)
Adding the authentication controller4m 56s
-
(Locked)
Registering new users using UserManager9m 8s
-
(Locked)
Logging in users4m 54s
-
Generating an access token10m 17s
-
(Locked)
Adding the RefreshToken table5m 4s
-
(Locked)
Generating and storing refresh tokens4m 6s
-
(Locked)
Injecting TokenValidationParameters2m 57s
-
(Locked)
Refreshing expired tokens12m 6s
-
(Locked)
-
-