#292 Sign in with Microsoft (Entra ID / Microsoft 365) through OpenID Connect
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#292
- issue
- state:closed
Follow-up from #286. Directory sign-in (LDAP / Active Directory) covers schools and organisations with an on-premises or reachable domain controller, but many schools are on Microsoft 365 with accounts only in Entra ID (formerly Azure AD), which offers no LDAP to outside servers (Entra Domain Services aside). They need a **Microsoft** provider alongside Google, GitHub and Facebook: OpenID Connect authorization code flow with PKCE against `https://login.microsoftonline.com/ /v2.0`, `OAUTH_MICROSOFT_CLIENT_ID` / `_SECRET` and an `OAUTH_MICROSOFT_TENANT` (a tenant ID to allow only one school, or `organizations` / `common`), verifying the ID token's signature (the tenant's JWKS), issuer (per tenant), audience, nonce and expiry, and using the `oid` claim (with `tid`) as the stable subject. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/issues/292
Related
Open #292 Sign in with Microsoft (Entra ID / Microsoft 365) through OpenID Connect in the timeline