modcomms/backend/app/dependencies
Vadym Samoilenko dfb758fa61 Fix email resolution from Azure AD token claims
Azure AD v1 access tokens (sts.windows.net issuer) use the 'upn' claim
for the user principal name/email, not 'email' or 'preferred_username'.
Add 'upn' as a fallback so email is correctly resolved on login.

Also add debug logging to show which claims are present.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 15:55:00 +00:00
..
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
auth.py Fix email resolution from Azure AD token claims 2026-03-03 15:55:00 +00:00