Microsoft Entra app
slotmirror needs an app registration in Microsoft Entra to connect Microsoft 365 and Outlook.com accounts.
- In the Microsoft Entra admin center, open App registrations and choose New registration.
- Supported account types: Accounts in any organizational directory and personal Microsoft accounts. Choose a single tenant only if every calendar is in your tenant.
- Redirect URI: platform Web,
https://<your-worker>/auth/microsoft/callback. - Under API permissions, add the delegated Microsoft Graph permissions
openid,email,profile,offline_access,User.ReadandCalendars.ReadWrite. Users can consent to these themselves, unless your tenant blocks user consent. - Under Certificates & secrets, create a client secret. Note when it expires. The sync stops when it expires.
- Set
MICROSOFT_CLIENT_ID(the application ID) andMICROSOFT_CLIENT_SECRET:
pnpm wrangler secret put MICROSOFT_CLIENT_IDpnpm wrangler secret put MICROSOFT_CLIENT_SECRETFor a team on Microsoft 365, also see Organisations: it explains
ALLOWED_TENANT_IDS, SIGN_IN_PROVIDERS and SCIM.