.NET 6 Web API Create JSON Web Tokens (JWT) - User Registration / Login / Authentication

preview_player
Показать описание
In this video we will be going to be creating JSON Web Tokens, User Registration, Login and Authentication in our .NET 6 Web API.

Support me on Patreon to access the source code:

00:00 Intro
01:01 Designing the Login Journey
14:43 Getting the source code
18:26 Exploring the source code
19:04 Installing Nuget Packages
22:05 Understanding JWT structure
24:00 Adding JWT secure key
44:36 Adding Identity Db Context
51:23 Building the DTOs
54:32 Adding Authentication Controller
1:00:00 Adding Register Action and Designing the registration journey
1:11:00 Create JWT generating function
1:27:00 Testing and bug fixes
1:34:00 Creating the Login Action
1:47:00 Adding Authentication to Controllers

Some helpful videos

Let us connect:

Support my work:

Hire Me:

WHO AM I:
I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.

GET IN TOUCH:

#WebAPI #JWT #dotnet
Рекомендации по теме
Комментарии
Автор

I'm creating an online store for my bachelor's thesis project, and your videos really saved me! We don’t have proper teachers, so we have to study on our own, and I am very, very grateful to you for these high-quality lessons! I wish you all the best and good health! ✨💗

speak-louder
Автор

As a new solo software engineer running my own business, I miss out on being surrounded by and learning from experienced professionals. Having access to such high-quality content is invaluable. Thank you very much for this Mohamad.

Chris-mhrm
Автор

este video es oro puro, ha sido el primero video sobre jwt que he podido entender con claridad, muchas gracias.

1:34:39

germanjesus
Автор

Thank you for this tutorial. You just helped a botnet backend engineer from Ghana.

createdliving
Автор

Easily one of the best tutorials on the topic currently available. Thanks Mohamad! Keep making these great videos!!

MrScorpio
Автор

Thank you for a great tutorial. Gives me a good base to now expand with more questions!

kmud
Автор

Your constructor parameter should be like this IOptions<JwtConfig> jwtConfig and when you assign it to the read only field you should get .Value property and you will not get any exceptions.

pafuuu
Автор

Could you create a video going in-depth into custom authentication. By that I mean refresh tokens with re-use detection and rotation. Multiple simultaneous logins i.e logging into mobile app does not log you out of web app.

ttncmok
Автор

Hello Mohamed, keep up the great videos, very insightful. Thank you.

raymondwilliams
Автор

Heeyy Selam from Turkey! just have discovered your channel.. really like it please keep shining around with your narrative style <3 i got these subjects well with you

sumeyyea
Автор

mohamad Hello. I am enjoying your video. Thank you so much. I'm following the tutorial and trying to find net-6crud in git, but it doesn't seem to be visible. Could you please tell me how to check the net-6crud repository?

soohyunjeon
Автор

Excellent content, I definitely subscribe to your channel! As a detail: the "Jwtconfig" injection failed, because the constructor must receive "IOptions<JwtConfig>" as a parameter instead of "JwtConfig"

leandrojara
Автор

Basically, you are a great man, thank you very much

mohammadparlar
Автор

Just a heads up, if you are at the part of this tutorial where you are entering your username and password in swagger for the first time, and it gives you a server error, if you run the debugger you will see that by default, Identity requires passwords to be of a certain length and include at least one nonalphanumeric character or else it will error out. This is not immediately clear.

jeffwoltjen
Автор

This is a very, very good tutorial. Thank you so much.

GeesDoet
Автор

thank you for this video eng: mohamad <3

Bess_Gates
Автор

What i think in my mind...i got that from ur channel ❤️

satishv
Автор

I was looking for this. Thank you Sir😍

udarachinthaka
Автор

Can you push the source codes into Git. Then I have to see the source code while watching the tutorials. Thanks.

sandanuwan
Автор

Chief, where do I see the GitHub repo?
Also, I think that you should move your image away from the screen. It is blocking the code which you are writing

johndivine