Skip to content

Microsoft Entra ID OIDC setup

  1. Open Microsoft Entra admin center and go to App registrations → New registration.
  2. Set a name and supported account type for your tenant needs.
  3. Add this redirect URI under Web:
  4. http://localhost:8080/login/oauth2/code/microsoft
  5. After creation, copy:
  6. Application (client) ID → MICROSOFT_CLIENT_ID
  7. Directory (tenant) ID → MICROSOFT_TENANT_ID
  8. Go to Certificates & secrets and create a new client secret:
  9. secret value → MICROSOFT_CLIENT_SECRET
  10. In API permissions, ensure OpenID scopes are available (openid, profile, email).

Default authorization endpoint in LeaveMaster:

  • http://localhost:8080/oauth2/authorization/microsoft

For multi-tenant sign-in, set MICROSOFT_TENANT_ID=common.