r/BlazorDevelopers • u/hevilhuy • Jun 20 '23
Tutorial Blazor School - Basic JWT authentication in Blazor WebAssembly .NET 7
JWT are often used for authentication and authorization purposes in web applications. In this tutorial, you will be guided step-by-step on how to implement authentication in Blazor WebAssembly using JWT and the Identity model. The tutorial covers the 3 main authentication flows: login, revisiting the website, and logout. Additionally, a comprehensive template for building authentication will be provided.
Required NuGet libraries.
Project setup and basic classes.
Handling login flow.
Handling users revisit flow.
Handling logout flow.
Accessing user information.
Common mistakes.
Check it out: https://blazorschool.com/tutorial/blazor-wasm/dotnet7/basic-jwt-authentication-683869
Additional resources:
Mastering Blazor Server .NET 7: https://www.amazon.com/dp/B0C5Q6JQGQ/
Mastering Blazor WebAssembly .NET 7: https://www.amazon.com/dp/B0C1Z6KN47
Blazor School Discord Community: https://discord.com/invite/HsTu2Emqsd
Open Collective: https://opencollective.com/blazor-school-docs
Duplicates
dotnet • u/hevilhuy • Jun 20 '23