Premium Only Content
			Using Asp.net Identity in our eShop ASP.NET Core MVC (Part 7)
00:00 – Introduction
01:20 – ASP.NET Identity Overview
01:43 – Real-World Analogy for Identity
02:18 – Core Components of ASP.NET Identity
02:57 – Role of ApplicationUser Class Inheriting IdentityUser
03:26 – Role of UserManager in ASP.NET Identity
03:42 – Role of SignInManager in ASP.NET Identity
03:56 – Identity Tables for Storing User Information
04:05 – Required Changes in Program.cs to Enable Identity
04:52 – Implementing Identity in the Project
05:20 – Renaming Project to Follow PascalCase (e.g., Ckc.EShop.Web)
06:10 – Adding a Class Library for the Infrastructure Layer
07:00 – Creating ApplicationUser Class in the Identity Folder
07:40 – Installing Microsoft.AspNetCore.Identity NuGet Package
09:10 – Creating LoginViewModel in the ViewModels Folder
11:00 – Adding AccountController to the Web Project
12:20 – Injecting UserManager and SignInManager into the Controller
15:00 – Implementing SignIn GET Action
16:50 – Implementing SignIn POST Action
21:15 – Creating RedirectToLocal Private Method
23:20 – Using nameof(CatalogController.Index) for Type Safety
23:30 – Adding SignIn View
25:00 – Building the SignIn View with HTML
31:30 – Creating _LoginPartial View for Reuse
33:50 – Rendering _LoginPartial in Layout using PartialAsync
35:20 – Registering Identity in Program.cs
35:50 – Configuring Identity Database in Program.cs
37:00 – Registering Identity with AddIdentity and AddEntityFrameworkStores
38:35 – Creating AppIdentityDbContext Inheriting from IdentityDbContext
44:30 – Creating AppIdentityDbContextSeed Class to Seed Default User
45:20 – Implementing SeedAsync Method in the Seed Class
46:00 – Why Use CreateScope for Scoped Services
49:30 – Checking for Existing User via UserManager
52:30 – Creating Migration:
dotnet ef migrations add InitialIdentityMigration --context AppIdentityDbContext --project ProjectName --startup
57:36 – Calling the Seeding Function from Program.cs
59:30 – Conclusion
In this tutorial, I’ll show you how to implement ASP.NET Identity in an ASP.NET MVC application, step by step.
You can find the Github repo here
https://github.com/hellowahab/eShopCKC
🔍 What You’ll Learn:
What ASP.NET Identity is and why it matters
How to integrate ASP.NET Identity into your MVC project
Setting up a separate DbContext for Identity
Pro tips on extending Identity for real-world use cases
NOTE:- Migration Command used inside the video
dotnet ef migrations add InitialIdentityMigration --context AppIdentityDbContext --project ProjectName --startup
📦 About eShopOnWeb:
eShopOnWeb is a sample ASP.NET Core reference application that demonstrates clean architecture, DDD patterns, and best practices for building scalable web apps.
🛠 Tech Stack Covered:
ASP.NET Core
Entity Framework Core
Razor Pages
Clean Architecture
ASP.NET Identity
👍 If you find this helpful, don’t forget to like, subscribe, and hit the notification bell to stay updated with more tutorials.
💬 Got questions or suggestions? Drop them in the comments—I’d love to hear from you!
#eShopOnWeb #ASPNetCore #DotNet #WebDevelopment #OpenSource #Microsoft #Identity #WahabHussain #codekincreations #ckc
- 	
				
							LIVE
								ThisIsDeLaCruz
9 minutes agoBack Stage Pass with Avenged Sevenfold
47 watching - 	
				
							LIVE
								Tundra Tactical
2 hours agoProfessional Gun Nerd Plays Battlefield 6
72 watching - 	
				
							1:01:12
								Donald Trump Jr.
5 hours agoThe China Matrix with Journalist Lee Smith | TRIGGERED Ep.288
90.9K64 - 	
				
							LIVE
								MattMorseTV
1 hour ago🔴Trump's '60 Minutes' INTERVIEW + MUCH MORE.🔴
1,170 watching - 	
				
							LIVE
								Dr Disrespect
10 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - FULL SEND INTO THE RED
1,248 watching - 	
				
							1:02:08
								BonginoReport
3 hours agoNicki Minaj Speaks Out Against Christian Persecution - Nightly Scroll w/ Hayley Caronia (Ep.169)
23.6K20 - 	
				
							LIVE
								SpartakusLIVE
4 hours agoSNIPING in Battlefield 6 - REDSEC || Monday MOTIVATION to CONQUER the Week
139 watching - 	
				
							LIVE
								Nerdrotic
2 hours agoNerdrotic At Night 531
321 watching - 	
				
							LIVE
								TheCrucible
1 hour agoWATCH PARTY! Coach Greg Adams vs Andrew Wilson: Marriage in the West is Good For Men (11/03/25)
1,328 watching - 	
				
							LIVE
								The Jimmy Dore Show
2 hours agoTrump Threatens to INVADE Nigeria! Kash Patel CRASHES OUT Over Jet Use Criticism!
7,838 watching