.NET 6 Blazor 🔥 Authentication & Authorization #2 (HTTP Header & NotifyAuthenticationStateChanged())

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


Table of Contents:
00:00:00 Intro
00:02:51 Quick Recap of Part 1
00:05:04 Add a New Controller
00:11:50 Create the Login Page
00:13:21 Install the Blazored.LocalStorage NuGet Package
00:22:34 Modify the AuthenticationStateProvider
00:11:55 Implement the GetAuthenticationStateAsync() Method
00:25:43 Add the Login/Logout Button
00:32:37 Final Test (after fixing some errors)
00:33:40 Setting the Default HTTP Request Header
00:40:19 Outro

🙏MANY THANKS TO THESE LOVELY PEOPLE:
pascalditzfeld
PovilasSimanskas
Ameet Jayawant
jenö
Marco Otilli
Mark
FastTrak
l33ter
alibux
@mgrainger231
Luke Vincent
mrcl
Alain Legrand
Thomas Werner
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
@Big_Bear_27390
Mathias
walter e watkins
Günther Dassel
Axel
Josh
Daniel Huber
Fredric Adell
Juan Carlos
Manolis
Pajani
P.
Jonas Granlund
Bobby
Kristina
@xamarin007

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

Hello Patric, Great Content! Please
part 3 with generating tokens, validating them and applying roles. Thank you very much.

facundoroldan
Автор

You slowly becoming my favorite programing youtuber, the flow of the video is great, explanations are clear, keep up the good work, thanks!

rankarat
Автор

When your son is asleep, you make videos for me, and when my daughter is asleep, I watch the videos and learn new stuff!

I am very new to Blazor WebAssembly but I have loved every minute so far! Now comes the real question - do I switch from my beloved React?! :D

whackablemole
Автор

Great content, almost finished your Blazor Bootcamp - very clear and interesting stuff. Thanks a lot Patrick!

zhaltys
Автор

Muchas gracias, Don Patricio!!! you have made my life a lot easier with your videos 🥰

unjordi
Автор

Bro, you was happy with 8k subs, now have 26k, great job

krzysztofbarbarski
Автор

Thanks for the video! I combined this with your other video about creating the JWT on the server, and now I have a complete log in / log out with API auth! One thing I did have to do, which might be a bit weird, is remove any " and ' characters from the JWT when storing and retrieving from local storage.

All that's left is to create the user registration workflow, which is my next task.

MichaelBond
Автор

congrats on your 8K ... but you have more!
today it's 12.6K !! :)

philmingo
Автор

yey another one . with onlick. im not alone tho..

jouchiwinchester
Автор

How to make use of that was not completely clear to me but now it is. Thanks again 👍

mrasoft
Автор

Thanks Patrick! I have succesfully built my custom app following your tutorials here and on Udemy with JWT token authorization. The points what I miss: how to read the user claims from the token locally not hitting the server? How to manage the claims, policies on the server side in hosted app like your webshop tutorial? How to manage Role claims when user can have multiple roles? I would appreciate to see a tutorial or an appropiate link for solutions. Keep up the great work!

sokoo
Автор

I already have a backend that returns jwt token and I used it for the tutorial. It is awesome!.

emreaka
Автор

another great tutorial. keep the great work. really appreciate it. 👍

MJ-ufof
Автор

That is great
Thank you very much Patrick.

talkathiriify
Автор

2023 você ganho +1 inscrito.

Muito bom seus conteúdos...

RubensAraujoOficial
Автор

You r the best Blazor programing youtuber, can u create a complete Login and Regsiter with Auth video for us

katlasrilaxmi
Автор

Are you going to make a video how to register user into the database? Or is there already a video on your channel? Because I couldnt find one.

xdboy
Автор

One thing about being a parent: every time you think you've figured out the status quo, it changes. Good luck with the nighttime routine!

MichaelBond
Автор

Thank you for this video Patrick! But i have a problem when i start my app : InvalidOperationException: JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendered. When prerendering is enabled, JavaScript interop calls can only be performed during the OnAfterRenderAsync lifecycle method. And it points me on string token = await

ruslansaidvakassov
Автор

All excellent, now it is possible to have a user with two or more roles? For example a user who can Edit, Delete and Print.
Thank you very much and greetings.

fedoga