Cookie authentication in .NET Blazor

preview_player
Показать описание
Authorised Territory code examples - This .NET #blazor #tutorial shows how to use cookie authentication.
First, we create sign in, sign out and secured components followed by addition of the required middleware.
Next, we create a #dotnetcore controller to handle log in and log out.
Using Chrome dev tools, we show users successfully logging in and out. Finally, we fix an issue where users are not logged out inside Blazor app even though auth cookie has expired.
Рекомендации по теме