ASP.NET Core Identity from Scratch: DB Context, Roles, Registering Users

🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic ☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzS...

ASP.NET Core Identity from Scratch: DB Context, Roles, Registering Users
Milan Jovanović
31.5K views • Sep 5, 2025
ASP.NET Core Identity from Scratch: DB Context, Roles, Registering Users

About this video

🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ

Learn how to set up ASP.NET Core Identity from scratch. In this video, I show you how to:
- Create a custom ApplicationUser with additional fields
- Configure the DbContext and run migrations
- Seed roles like Admin and Member
- Build a /register endpoint using minimal APIs
- Wrap Identity calls in a transaction for atomic user registration

By the end, you’ll understand the full Identity setup that most tutorials skip—giving you a clean, production-ready foundation for authentication and user management in ASP.NET Core.

Master Claims Transformation for Flexible ASP.NET Core Authorization
https://www.milanjovanovic.tech/blog/master-claims-transformation-for-flexible-aspnetcore-authorization

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
https://www.youtube.com/@MilanJovanovicTech

Chapters
0:00 Creating the Identity DbContext
4:56 Migration for Identity tables, Roles
9:04 Register a user with Identity (UserManager)
13:31 Why you need a DB transaction

Video Information

Views

31.5K

Likes

1.1K

Duration

16:45

Published

Sep 5, 2025

User Reviews

4.6
(6)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.

No specific trending topics match this video yet.

Explore All Trends