vault backup: 2025-06-22 11:02:30
This commit is contained in:
@@ -777,9 +777,9 @@ console.log(roles); // ["Admin", "Editor", "User"]
|
||||
|
||||
### Summary
|
||||
|
||||
|Step|How it works|
|
||||
|---|---|
|
||||
|JWT creation|Multiple `"role"` claims added to token|
|
||||
|Backend authorization|Validates token and checks if user has required roles|
|
||||
|Frontend decoding|Extracts `role` claim(s) as array of strings|
|
||||
|Frontend UI control|Shows or hides content based on roles|
|
||||
| Step | How it works |
|
||||
| --------------------- | ----------------------------------------------------- |
|
||||
| JWT creation | Multiple `"role"` claims added to token |
|
||||
| Backend authorization | Validates token and checks if user has required roles |
|
||||
| Frontend decoding | Extracts `role` claim(s) as array of strings |
|
||||
| Frontend UI control | Shows or hides content based on roles |
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
# Add a field in Database
|
||||
- [ ] Add `User` field in `Roles` table using SSMS or Seed data in DbContext file
|
||||
- [ ] Make sure the property `PersonId` is nullable in `Account`, so you can add fields related to "Person" later after registeration
|
||||
- [ ] Make sure the property `PersonId` is nullable in `Account`, so you can add fields related to "Person" later after registration
|
||||
|
||||
# Branching
|
||||
- [ ] Create the feature/authentication branch based on develop
|
||||
|
||||
Reference in New Issue
Block a user