Blazor Web Assembly authentication with Identity API endpoints in .NET 8

Опубликовано: 15 Октябрь 2024
на канале: Authorised Territory
611
18

Authorised Territory code examples - This .NET 8 #blazor #tutorial shows how to use identity API endpoints to secure Blazor Web Assembly app with tokens.
First, we create the Blazor Web Assembly app and add Identity API as well as Entity Framework.
We run the migration to create identity tables in the database.
Next, we create razor login and register components.
Instead of using cookies, the identity api uses access token.
Finally, we run the app, fix few issues and demonstrate registration and logging in process.