.NET 6 Web API 🔒 Role-Based Authorization with JSON Web Tokens (JWT)

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


Table of Contents:
00:00:00 Intro
00:02:00 Recap of Creating JSON Web Tokens
00:06:28 The [Authorize] Attribute
00:09:54 AuthenticationScheme & Middleware
00:16:03 Add SwaggerUI Authorization
00:22:14 Add the Role
00:27:40 Quick Recap
00:28:59 Outro

🙏MANY THANKS TO THESE LOVELY PEOPLE:
István Csibor
Grant Burdon
@gianluigiconti
Gerrit Esmeijer
Illia
Németh-Pók István
Michael Mel
Marko Zdilar
GerryB
@DADA_universe
Domen Hren
@heroesch
Carey
Peter De Tender
Baris Keskin
Someone
@Big_Bear_27390
Mathias
walter e watkins
Günther Dassel
Axel
Josh
Daniel Huber
Fredric Adell
Juan Carlos
Manolis
Pajani
P.
Jonas Granlund
Someone
Bobby
Kristina
@xamarin007

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

🚀 Join the .NET Web Academy with a 30% discount - closing soon!

PatrickGod
Автор

Thank you! That was the best one I've seen yet on this topic. All of the others are either impossible to follow or just fly though it so fast, they skip over their boilerplate code that we're supposed to have or type something so quickly and jump off the screen, we have no idea what they just did. There is ALWAYS something they have pre-installed and just assume we have it too. You are the first one that didn't do that.

bwzffgh
Автор

Thanks. This video really helped me out at work when documentation was failing me

thatgamingfreak
Автор

Your oAuth tutorials have been extremely helpful. Thank you very much :)

ravb.
Автор

Patrick, your videos are REALLY clarifying! Very nice job.

amarildopena
Автор

One video that I haven't come across but which would be useful to many is an elegant way to handle cross-cutting concerns in WebAPIs, for example, without having a ton of code in, or called by, the controller. I don't think that the decorator pattern applies well to Web APIs, unfortunately.
The cross-cutting concerns I can think of (I am sure there are more) which might apply to a web API include:
- Logging
- Caching (memory, Redis...)
- Performance timing
- Authorization

- Authentication
- Validation
- Exception handling
- Auditing (e.g. Log the jsonified parameter object)
- Debounce

- Rate limiting
- Duplicate detection
- Retry
- i18n?
- Transactional processing
- Fault tolerance (e.g. Circuit Breaker pattern)
- Persistence
- Real-time constraints
- Synchronization

CharlesBurnsPrime
Автор

Your videos are always my go to, thank you!

cameron
Автор

Ein weiteres tolles Video, vielen Dank dafür :-)

raphaellukas
Автор

Great stuff. I am working my way through your Web API Authorization series, and I am learning a lot. I really like that you break down the different parts to use JWT, so we really come to understand how it works. Best wishes to you and your family. Nice thing to get a little peek into your life too.

deja
Автор

Thank you Patrick, Waiting for the policy based also

moshiurshohel
Автор

You are my .Net 6 Web Api teacher!! Thank you Patrick 👍

samjakrishnan
Автор

Great content i have followed your JWT token and this video both are amazing

ugempireninjaaaaaahatori
Автор

I was struggling with that kind of authorization. Thanks for it. You are coding Thor... 👍👍👍

rajneeshrocks
Автор

Thank you for this video. This helped me a lot. Actually I was given a task exactly on this topic, and I found this tutorial helpful 😊👍

shermatovs
Автор

Thanks a lot Patrick for clearly explaining each concept with practical solution. It really helps us understand the concepts in depth, Much Appreciated Efforts. Bible for Interested Developers

abbsantosh
Автор

Hi Patrick, how are you? I hope all is well with you and your baby! I'm from Brazil and thanks to your tutorials, I got my job as a Junior programmer, I thank you from the bottom of my heart and I hope one day to thank you in person. my dream is to visit the USA. and once again thank you very much God bless you!

pchcjiy
Автор

Well demonstrated, thank your for taking the time to explain it 👍

danielviberg
Автор

die jwt reihe ist super hilfreich. vielen dank für deine mühen!

ahmo
Автор

ABSOLUTE PURE Thank you for this video!

rodrigo
Автор

Hi Patrick,
Looking forward to your next course.

chiraglathiyachiraglathiya