Commit 43c8252
Fix Account.razor claim order for workforce tokens
Workforce Entra ID tokens use 'preferred_username' (UPN) instead of
the CIAM-specific 'emails' claim. Reorder the fallback chain so
preferred_username is checked first, followed by standard 'email'
and ClaimTypes.Email.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent dde33d3 commit 43c8252
1 file changed
Lines changed: 4 additions & 3 deletions
File tree
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | | - | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
0 commit comments