This is where I had hoped to see the redirect to login solution you had
@MiguelAngelHerrera Жыл бұрын
Thanks! You saved me from hours of surfing research.
@Codewrinkles Жыл бұрын
Thanks for watching
@ThreeHubs2 жыл бұрын
Great video, thanks. I hope you will create a video about authhentication in blazor wasm
@njilouis375211 ай бұрын
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 🙏🏼🙏🏼
@Codewrinkles11 ай бұрын
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 Жыл бұрын
It doesnt work for me. i have some problem with db probably. could you sent me what table are you using?
@volibita8902 Жыл бұрын
Awesome teacher!
@Codewrinkles Жыл бұрын
Thank you! 😃
@coolwaterdvr2 жыл бұрын
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 Жыл бұрын
I will answer you under control of the author , i think u must use roles and authorize only who u want