.NET 8 Role-Based Authorization with JSON Web Tokens (JWT) in Blazor + Web API

preview_player
Показать описание
In this project, I will use Blazor Web App frontend + Web API backend in .NET 8, using Entity Framework Core code first, database using SQL Server.
In Part 3, I will show you how to implement Role-Based Authentication and Authorization using JWT

00:00 Intro and flow explanation
01:27 Create Login API
04:40 Setup JWT validation
08:26 Build login form
10:32 Implement AuthenticationStateProvider
14:50 Authorize with AuthenticationStateProvider
18:57 Include token in API calls
20:29 Role-Based Authorization

Link play list for CRUD Blazor Web App & Web API in REAL project:

Link to Part 1:

Link to Part 2:

Create by: Dose Hieu

#DotNet #Blazor #AspNetCore #authentication #authorization #jwt #aspnetcore #webapi #csharp #aspnet #dotnet8
Рекомендации по теме
Комментарии
Автор

Very good course.
The layers make sense.
The code is clean.
Some tables like user and claims are missing, don't you think?
I just don't understand why not use Identity?
Even if it was just to create the tables...
But anyway, your content is very good and well explained, thank you.🕶😀
Continue this series👍

luizfredericojr
Автор

your videos are great & self explained. it would be highly appreciated if you please give next video on refresh token & cascading master tables & pdf excel export on that same project

pankajsharma-ywrl
Автор

Thanks for the greate tutorial. Its exatly what I am currently working with. Cant wait for the next part Hope you also include that the users login are saved in the database for a real world example.

CentauriDK
Автор

Good explanation.Continue this series❤

arunbastin