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

preview_player
Показать описание


💡 Udemy Online Courses:

Table of Contents:
00:00 .NET 7 Web API 🔒 Create JSON Web Tokens
02:46 Add the AuthController with the Register() Method
03:51 Install the BCrypt.NET NuGet Package
07:35 Test the User Registration
08:11 Implement the Login() Method
10:32 Test the Login() Method
11:18 Create the JSON Web Token
20:22 Final Test

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

This is personally my favorite part of your tutorials. All the way to refresh tokens. Thanks for this.

kenneth
Автор

if you are facing an error like Unable to create KeyedHashAlgorithm for algorithm 'HS512', the key size must be greater than: '512' bits, key has '256' bits. Arg_ParamName_Name. Just increase the token size in your settings.json

saitoinosaka
Автор

This is my most simpliest favorite authentication tutorial especially using hashPassword. Awesome Job Patrick!

AdeyinkaAdegbenro
Автор

I just Love the way you explain bro, thank you so much and carry on please 🙏🙏🙏

xbphfzo
Автор

Superb explanation as usual Patrick. Thank you.

colllm
Автор

I love your style, very much the way I like to code.

MatthewCuda
Автор

Great video and explanation, thank you very! 😎✌

orlandoubilla
Автор

good reference in last test part <3 . Thanks for short and very usefull videos/informations.

RoyZASTEROiD
Автор

Hi Patrick. I'm following your videos since the .NET 6 version of this topic. I remember back then you used HMACSHA512 to generate the password Salt. Does this mean HMACSHA512 will always generate the same Salt for the same input even though is in byte[] format?

josephl
Автор

nice.
من ایرانی هستم. ممنون بابت اموزش عالی.💕💕💕💕💕💕💕💕💕💕

alataherzadeh
Автор

Hello Patric
I like your teaching style and also love your codding style
🥰

abdulmussavir
Автор

@PatrickGod There's no explanation as to how inputing Bear Token in the Swagger, unless I missed it?

slowmowfit
Автор

Hello patrick How to store the Data in the sql database user login and regsitration ?

jayantverma
Автор

Could you please tell us how we can logout the user? thanks

pedrampourhakim
Автор

i sheesh with that code very simple, thanks bro

phoolherreracondezo
Автор

Nice one, can you do a video on User impersonation using JWT ? Thanks

onedev
Автор

my jwt is not validating after i create it can you help me?

samiullah
Автор

Bro, _configuration gives red flag, what's possibly the cause?

samsonmayeem
Автор

Is anyone know how to run this in postman..?

ritickkushwaha
Автор

May I have a question about security? JWT is nice but is it a good idea to store there email or some user's data? Is'nt it better to control and check the JWT in the database if the user is logged in or not? Or what's the bet idea in this way how to secure the API?

daniel_klement_photography