Blazor server: how to display content based on authentication state

  Рет қаралды 7,260

Codewrinkles

Codewrinkles

Күн бұрын

Пікірлер: 13
@marcusmaunula5018
@marcusmaunula5018 Жыл бұрын
This is where I had hoped to see the redirect to login solution you had
@MiguelAngelHerrera
@MiguelAngelHerrera Жыл бұрын
Thanks! You saved me from hours of surfing research.
@Codewrinkles
@Codewrinkles Жыл бұрын
Thanks for watching
@ThreeHubs
@ThreeHubs 2 жыл бұрын
Great video, thanks. I hope you will create a video about authhentication in blazor wasm
@njilouis3752
@njilouis3752 11 ай бұрын
What about having different roles I mean how did you make different roles have different authorization maybe . Student, staff , registration and Rector from the user database role 🙏🏼🙏🏼
@Codewrinkles
@Codewrinkles 11 ай бұрын
That would be done through role claims.You would have to manage the addition of such roles probably on the sign up and make sure you user AspNetCore.Identity and the role service to add a role for each user. Than it would be just as easy as using RequiredRoles("student") in Program.cs
@tomsvk
@tomsvk Жыл бұрын
It doesnt work for me. i have some problem with db probably. could you sent me what table are you using?
@volibita8902
@volibita8902 Жыл бұрын
Awesome teacher!
@Codewrinkles
@Codewrinkles Жыл бұрын
Thank you! 😃
@coolwaterdvr
@coolwaterdvr 2 жыл бұрын
Luv the lesson. Question: how to restrict users from accessing the Register page? Since the Register page is not a razor component how do we restrict users from accessing the page?
@essameddineadib8751
@essameddineadib8751 Жыл бұрын
I will answer you under control of the author , i think u must use roles and authorize only who u want
@DJosh-cs5vx
@DJosh-cs5vx Жыл бұрын
Thanks Code Wrinkles
@Codewrinkles
@Codewrinkles Жыл бұрын
Any time
How to implement role based authorization in Blazor Server apps
17:46
HELP!!!
00:46
Natan por Aí
Рет қаралды 31 МЛН
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 20 МЛН
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 25 МЛН
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 893 М.
8 Free and Open Source Blazor UI Libraries
9:42
Claudio Bernasconi
Рет қаралды 42 М.
Blazor Authentication with JSON Web Tokens
31:19
Coding Tutorials
Рет қаралды 9 М.
Using EF Core in Blazor Server the right way
33:49
Codewrinkles
Рет қаралды 21 М.
Apple, Stop Putting Things On the Bottom Please
9:16
TechLinked
Рет қаралды 529 М.
Blazor Admin Page Tutorial (Roles, Policy, Claims)
1:04:00
Just Blazor Programming
Рет қаралды 16 М.
Blazor Server Custom Authentication [Blazor Tutorial C# - Part 11]
25:01
HELP!!!
00:46
Natan por Aí
Рет қаралды 31 МЛН