ASP.NET Core JWT Authentication and role-based authorization



ASP.NET Core JWT Authentication and role-based authorization

ASP.NET Core JWT Authentication and role-based authorization

💻Get the source code: https://youtube.dotnetmicroservices.com/howtoprotectwebapi
🔥Check out my courses: https://dotnetmicroservices.com/courses

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

LinkedIn: https://www.linkedin.com/in/juliocasal
Twitter: @julioc
My site: https://dotnetmicroservices.com

#dotnet #aspnetcore #aspnet

Comments are closed.