.NET 6 API Authentication With JWT (JSON Web Tokens) | User Registration, Login, And Creating JWT

Published: 30 July 2022
on channel: Israel Quiroz
3,685
100

.NET 6 API Authentication With JWT (JSON Web Tokens)
How To Create JWT C# .Net 6

To understand how to add JWT to a API first we need to understand what they are so we can use them correctly. I am then going to show you guys the best way to add json web tokens to a .net 6 api. I am going to start from creating users for your application to then showing you how to log those users in. Once we have a logged in user we then create their own json web token for them which they can then use to access whatever endpoints they need on the API.

The Github Link To The Code: https://github.com/israelquiroz93/JWT...

Support Me On Patreon:   / israelquiroz  
Follow Me On TikTok: https://www.tiktok.com/@israelquiroz9...
All My Links Here: https://linktr.ee/israelquiroz

#dotnet #jwt #Dotnet6APIAuthenticationWithJWT

TimeStamps
--------------------------------------
00:00 Intro
00:40 What Is A JSON Web Token?
02:22 Creating Your API Project
03:17 Creating The Models
06:32 Creating Your Fake Data Endpoint
07:55 Creating The Register Users Method
11:10 Create The Login Method
14:20 How To Create The JSON Web Token
21:17 How To Set JWT Authentication in Program.cs
23:50 Testing The API


Watch video .NET 6 API Authentication With JWT (JSON Web Tokens) | User Registration, Login, And Creating JWT online without registration, duration hours minute second in high quality. This video was added by user Israel Quiroz 30 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,685 once and liked it 100 people.