Security questions come in two parts: authentication asks who the caller is, and authorization asks what that caller is allowed to do. ASP.NET Core handles both through middleware you've already met, with ASP.NET Core Identity for managing users and JWT bearer tokens for securing APIs.
This module starts by separating authentication from authorization, using cookies and roles as a first example. It then builds a login and registration system with ASP.NET Core Identity, secures a Web API with JWT, and finishes with policy-based authorization, which goes beyond simple role checks to express flexible access rules.
Watch the lessons in order, then continue on to Real-Time & Background Work.
Breaks down the difference between authentication and authorization in an ASP.NET Core Web API, with a cookie authentication and roles demo.
A step-by-step tutorial that creates a secure login and registration system in ASP.NET Core MVC using Identity with .NET 9.
Shows how to implement JWT authentication and authorization in an ASP.NET Core Web API, generate JWT tokens, and secure API endpoints.
A deep dive into policy-based authorization that goes beyond simple role checks to build flexible, maintainable access rules.