ASP.NET Core WebAPI Authentication And Authorization Made EASY

preview_player
Показать описание
Join this channel to get source code access and other perks:

Authentication and Authorization in an ASP.NET Core WebAPI using JWT Bearer is something many people fear, because it seems very complicated. Not anymore! This video is your ultimate guide to ASP.NET Core Authentication and Authorization. We'll understand how to leverage the power of Microsoft AspNet Core Identity and the default authorization engine by implementing our own authentication endpoint. While doing this we'll understand how to generate JWTs in .NET, how can we work and persist claims and roles, so that we can use them for authorization purposes. Last but not least, we'll see how easy it is to perform role based authoirzation in ASP.NET Core.

Content:
1. Intro: 00:00
2. JWT settings: 02:40
3. Options Pattern: 04:38
4. Generating JWTs: 05:56
5. IdentityDbContext: 08:45
6. Configuring JWT Authentication: 10:35
7. Configure Auth in Swagger: 15:31
8. User registration: 17:23
9. User login: 23:35
10. Role-based authorization: 25:49
11. Testing it all out: 28:00
Рекомендации по теме
Комментарии
Автор

Can you add a video that shows how to go about doing the "Refresh Token" part of this ? It would be much appreciated.

nelsonrivers
Автор

I know that it is for the purposes of the demo but it should be noted that you don't store the FirstName and LastName in the database as claims. You might include them in the claims in the token but they definitely do not belong in the claims table in the DB.

Eirenarch
Автор

Fantastic video, you have a great way of explaining these things. In details, but with full clarity! Please continue the series 🎉

vesa
Автор

Congratulations for your clean english! tks!!!

samuelconduta
Автор

Just want to ask..i read before people said dont try implement your own authentication but use like azure ad...i am abit confuse to implement which method in my application

nasih
Автор

Sorry Dan,
Why didn't you extend the Identity user to the athlete?
Is it for your specific app?

marekiaro
Автор

Would you like make videos about authentication and authorization using JWT with Blazor NET8 auto render mode

This approach has many difficulties

waleedbensumaidea
Автор

I am learning a lot with your videos, Thank you

itssalmanvlogs_
Автор

Holy molly. Thank you Code wrinkles <3

magisteriumemporium
Автор

Great Video Dan, Thanks! Greatly explained.

bojanpavlovic