Mục tiêu: Hiểu sâu authentication/authorization flows, implement secure APIs đúng chuẩn.
1. ASP.NET Core Identity Internals
Architecture
┌─────────────────────────────────────────────┐
│ ASP.NET Core Identity │
├──────────────┬──────────────┬───────────────┤
│ UserManager │ SignInManager │ RoleManager │
├──────────────┴──────────────┴───────────────┤
│ Identity Stores │
│ ┌──────────┐ ┌────────────┐ ┌────────────┐│
│ │UserStore │ │ RoleStore │ │ClaimStore ││