.NET Blazor | Authentication & Role-Based Authorization - using JWT & Authentication State Provider

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

Hello friends, welcome, in this video, I will take you through how to assign roles such as Admin, User, Manager etc... to authenticated users in Blazor Web Assembly using Json Web Token (JWT) and Authentication State Provider.

Thanks so much for watching 🙌🏾 LIKE 👍, SUBSCRIBE & turn on Notifications 🔔 to know when I upload new videos EVERYDAY!

/*You can buy a coffee for me*/ ☕️

/*Get Intouch with Us*/

/*Documentation*/

/*Blazor Playlist*/

/*Get Source code*/

/*Check this out*/

/*Follow Netcode-Hub*/

/*Chapters*/
0:00 Review and Introduction.
04:23 Adding User role model to the database.
05:40 Adding database migrations using dotnet ef.
07:50 Assign default role to user after registration.
10:17 Adding new model as a return after user registration.
18:00 Install NuGet package to encrypt user content.
19:12 Configure the package service.
20:31 Encrypting the user content before storing in the local Storage.
23:08 Testing...
26:41 Assigning claims to the Authentication State Provider.
28:45 Adding authentication and authorization middleware pipeline.
29:35 Preventing all razor components from unauthorized users.
30:20 Displaying specific links to only authenticated users.
30:44 configuring logout.
31:48 Adding authorized view
34:10 Assign roles to authenticated users.
35:09 Conclusion...
Рекомендации по теме
Комментарии
Автор

/*Get Intouch with Us*/

/*Documentation*/

/*Blazor Playlist*/

/*Get Source code*/

/*Check this out*/

/*Follow Netcode-Hub*/

Netcode-Hub
Автор

The API returns an exception when it does not find the specified user. How can we solve ? Or cite video or source?

pgnutz