How to implement custom authentication in Blazor Server (WITHOUT Microsoft.AspNetCore.Identity)

Codewrinkles
Codewrinkles
18.2 هزار بار بازدید - 2 سال پیش - When it comes to authentication,
When it comes to authentication, I generally advise using Microsoft.AspNetCore.Identity as a minimum and IdentityServer4 for more complex scenarios. However, there might be scenarios in which you can't use neither of hem and you'd have to implement custom authentication in Blazor Server apps. In this video we take a look into how to implement custom authentication in Blazor Server using cookies (without any help from Microsoft.AstNetCore.Identity)
#Blazor #AspNetCore #Authentication

Join this channel to get access to perks:
@codewrinkles

Mentioned videos:
1. AuthenticationStateProvider deep dive: You're using AuthenticationStateProvi...
2. Claims based authorization in Blazor Server: Claims based authorization in Blazor ...
4. Role-based authorization in Blazor Server: How to implement role based authoriza...

Chapters:
1.Intro: 00:00
2. Why using custom auth might be WRONG: 01:09
3. Creating an Auth Service (use databases instead in real scenarios): 02:37
4. Setting up cookie authentication: 05:16
5. User registration and sign in: 09:05
6. Creating claims: 12:18
7. Creating ClaimsIdentity and ClaimsPrincipal: 13:55
8. Signing a user in: 16:20
9. Implementing login: 17:48
10. Implementing logout: 23:31
11. See it in action: 25:57
2 سال پیش در تاریخ 1400/11/25 منتشر شده است.
18,262 بـار بازدید شده
... بیشتر