Lesson 14: Securing Minimal Web APIs with JSON Web Tokens

Опубликовано: 02 Июнь 2026
на канале: Paul D. Sheriff
134
9

Lesson 14: Securing Minimal Web APIs with JSON Web Tokens

A very standard method to secure your Minimal Web APIs is to use JSON Web Tokens (JWT). In this lesson you learn to add this onto your Web API project.

Content
Lesson Objectives 00:00
Security in ASP.NET 00:35
DEMO: Add and Configure Authentication and Authorization 01:52
An Explanation of JSON Web Tokens (JWT) 03:15
DEMO: Add JWT to your Web API Project 05:56
DEMO: Register JWT Authentication with ASP.NET 09:10
DEMO: Create Security Classes 12:10
DEMO: Create Security Manager Class for Authentication 14:24
DEMO: Generate JWT and Authenticate User 21:01
DEMO: Display Contents of JWT at jwt.io 23:57
DEMO: Add JWT Support in Swagger 25:03
DEMO: Secure an Endpoint Using Claims 27:48
DEMO: Handling 401 and 403 Status Codes 31:03
Lesson Summary 33:24

You can get all the samples and hands-on labs for this course at https://www.pdsa.com/YouTube.

If you are interested in generating Minimal Web API projects, check out my FREE PDSC Developer Utilities at https://www.pdsa.com/Utilities.

#minimalwebapi #webapi #jwt #jsonwebtokens #csharp #development #programming #dotnet #dotnetcore #dotnet6 #dotnet7 #dotnet8 #pauldsheriff #pluralsight #youtube

Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.

Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn:   / paulsheriff  
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff