vault backup: 2025-06-22 11:02:30

This commit is contained in:
2025-06-22 11:02:30 +03:30
parent 9c7c55a6a2
commit a7f5370340
189 changed files with 1475 additions and 797 deletions
@@ -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