Microsoft Entra ID OIDC setup¶
- Open Microsoft Entra admin center and go to App registrations → New registration.
- Set a name and supported account type for your tenant needs.
- Add this redirect URI under Web:
http://localhost:8080/login/oauth2/code/microsoft- After creation, copy:
- Application (client) ID →
MICROSOFT_CLIENT_ID - Directory (tenant) ID →
MICROSOFT_TENANT_ID - Go to Certificates & secrets and create a new client secret:
- secret value →
MICROSOFT_CLIENT_SECRET - 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.