ASP.NET Core JWT Authentication and role-based authorization

Published: 31 January 2023
on channel: Julio Casal
15,598
393

💻Get the source code: https://go.dotnetacademy.io/howtoprot...

A solid REST API should make sure that its resources are protected so that only authorized users and clients can get access to them. And thanks to the latest innovations in ASP.NET Core, protecting your Web API could not be easier.

Here I'll show you how to protect your ASP.NET Core Web API in just a few steps.

Topics covered:
00:28 Understanding Token-Based Authentication
01:56 Creating a simple minimal API
08:13 Using JWT authentication and requiring authorization
13:02 Generating tokens with dotnet user-jwts
14:50 Understanding Json Web Tokens (JWT)
21:42 Implementing role based authorization
24:43 Extracting user information via ClaimsPrincipal
33:03 Evaluating user claims

🔥Become a Senior C# Backend Engineer: https://juliocasal.com/courses

🗺️Get My Free .NET Backend Developer Roadmap: https://juliocasal.com/roadmap

Join me on Patreon:   / juliocasal  
Follow me on LinkedIn:   / juliocasal  
Follow me on X: https://x.com/julioc

#dotnet #aspnetcore #aspnet


Watch video ASP.NET Core JWT Authentication and role-based authorization online without registration, duration hours minute second in high quality. This video was added by user Julio Casal 31 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 15,59 once and liked it 39 people.