You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: align Azure userinfo handling with Microsoft's OIDC claims
Verified against Microsoft's docs that graph.microsoft.com/oidc/userinfo
returns only sub/name/.../email — it does NOT return preferred_username or
email_verified. Accordingly:
- Drop the dead preferred_username fallback and email_verified conditional
(neither claim is ever present in the userinfo response).
- Collapse azureUserInfoResponse into a single azureUserInfo struct.
- Set EmailVerified=true explicitly, with a comment: the email is sourced
from the Azure AD directory and Hatchet's authz middleware blocks
unverified users, matching the Google/GitHub providers.
- Check the userinfo HTTP status so a Graph failure surfaces a clear error
instead of masquerading as "azure account must have an email".
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments