Module 09 of 12

Authentication & Authorization

Lessons

About This Module

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.

Lessons

4 videos
01

Authentication vs. Authorization Explained

Breaks down the difference between authentication and authorization in an ASP.NET Core Web API, with a cookie authentication and roles demo.

02

ASP.NET Core MVC Login and Registration using Identity

A step-by-step tutorial that creates a secure login and registration system in ASP.NET Core MVC using Identity with .NET 9.

03

ASP.NET Core JWT Authentication & Authorization to Secure Web API

Shows how to implement JWT authentication and authorization in an ASP.NET Core Web API, generate JWT tokens, and secure API endpoints.

04

ASP.NET Core Policy Authorization Deep Dive

A deep dive into policy-based authorization that goes beyond simple role checks to build flexible, maintainable access rules.