Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
ASP.NET Core Identity - Authentication & Authorization [MVC]
Rating: 4.3 out of 5(976 ratings)
7,498 students

ASP.NET Core Identity - Authentication & Authorization [MVC]

Learn Authentication & Authorization in ASP.NET Core (.NET 8) as we explore Identity Library with MVC and Razor Library
Last updated 2/2026
English
English [Auto],

What you'll learn

  • ASP NET Core Identity with MVC
  • Authorization with Roles
  • Implementing Two-Factor Authentication
  • Implementing Sign Up and Sign-in using with E-mail confirmation
  • User, Claims and Role Management
  • Scaffold Identity Library
  • Two Factor Authentication with MVC
  • External Logins in MVC
  • Policy Management
  • Custom Handler and Requirements

Course content

10 sections105 lectures6h 28m total length
  • Welcome3:12

    Master asp.net core identity with mvc by exploring authentication and authorization, roles, claims, policies, and robust login workflows from setup to advanced concepts.

  • ASP.NET Core Identity4:04

    Discover how ASP.NET Core Identity serves as a flexible user store with password hashing, token generation, and multi-factor authentication for MVC apps, while clarifying its role separate from authentication middleware.

  • Get most out of the course0:44
  • Demo and what this course is not about3:41

    Demonstrates an ASP.NET Core Identity app with login, social login, role and claim management, and policies, clarifying that the course focuses on security, not dynamic access to pages.

  • Authentication and Authorization3:40

    Authentication verifies who you are using a username, password, and claims, while authorization determines what access you have.

  • Cookies vs Token based auth2:31

    Compare cookie based and token based authentication, noting cookie based is stateful with server session tracking, while token based uses JWT and remains stateless for external logins.

  • Token vs cookie auth flow2:24

    Compare cookie-based and token-based authentication flows. Cookie flow creates a server-side session and cookie, while token flow returns a JWT stored client-side and sent in an authorization header.

  • Asp.net core identity structure and architecture4:12

    Explore how asp.net core identity uses a store and role store as a data access layer with interfaces, and how user manager, role manager, and the sign-in manager extend authentication.

  • Roles and claims2:35

    Explore how role-based authorization and claims in asp.net core identity control access in mvc apps, with examples like admin, manager, front desk roles, and elite customer claims.

  • Tools needed0:28

    Discover the essential tools for this course by installing Visual Studio 2022 and SQL Server, the only tools required for mastering ASP.NET Core Identity in MVC.

  • Project resources1:30

    Access project resources for the identity management course, including the GitHub code and commit history, and download the course content with Identity Manager snippets and PowerPoint slides.

  • Create Project1:10

    Open Visual Studio 2022 to create a new MVC app template, name Identity Manager, place project in same directory, use dotnet eight, and start fresh with none for authentication.

  • 16 Run Project0:58

    Run the mvc project to view the home and privacy pages. Add dotnet identity via two options: during project creation or after configuring the DbContext to enable authentication and authorization.

  • 17 Add Connection String1:53

    Configure Entity Framework Core authentication by adding a database connection string in appsettings.json, including server name, identity manager database, trusted_connection, and active result sets, then install NuGet packages.

  • 18 Add DbContext to Project3:57

    Configure Entity Framework Core by creating application DbContext, installing SQL Server and Entity Framework Core packages, and set up Identity using IdentityDbContext for authentication and authorization with code-first data access.

  • 19 Configure DbContext in Program Class File3:55

    Configure the identity db context by wiring db context options to the identity base class and register it in program.cs using a sql server connection string from appsettings.json.

  • 20 Create Database2:38

    Learn to create and migrate the database for ASP.NET Core Identity by using the package manager console to add a migration, install EF Core tools, and update the database.

Requirements

  • Basic SQL Server knowledge
  • 6months of experience with C#
  • Basic knowledge of ASP NET Core

Description

Learn important skills for the new identity system for ASP.NET Core. Many times with the built in code developer misses the core concepts behind security in ASP.NET Core or how the Identity Razor class library behaves! 


ASP.NET Core now includes the new identity system, which replaces the legacy membership system in ASP.NET. It is essential that software engineers learn these relevant skills and apply them when developing MVC applications if they do not want to combine razor pages with MVC


In this course we will build custom code with MVC for Identity Management similar to Identity Razor class library but with MVC. That way you can learn to stick with just one technology in your project.


Once we develop authentication with MVC and learn how to customize it.

We will also learn advance topics in authorization, as we start with basics and learn to dive into roles, claims and custom policy by building handlers, requirements and much more!


Authorization and User Management is a must in real world projects, and that is exactly what we will learn in this detailed course!


Course has been built using the latest .NET 8! 


There is no course on Udemy that comes close the the topics explained in this course. I hope to see you guys in the learning journey!

Who this course is for:

  • Anyone who wants to implement .NET Core Identity library with MVC
  • Anyone who wants to explore advanced authorization in details with ASP NET Core