Connections
Microsoft Outlook Mail, Calendar and Teams. Tokens are encrypted server-side; the browser never sees them. Sync is bounded and pull-based.
Setup required
Checking…Azure app registration
- Open Entra admin center → App registrations → New registration.
- Add a Web redirect URI matching
MICROSOFT_REDIRECT_URI, e.g.https://your-app/api/public/microsoft/oauth/callback. - Under Certificates & secrets, create a client secret and copy the value.
- Under API permissions, add delegated Microsoft Graph scopes (listed below) and grant consent.
Secrets — Project Settings → Secrets
MICROSOFT_TENANT_IDDirectory (tenant) ID from Entra ID → App registration.
MICROSOFT_CLIENT_IDApplication (client) ID from the same registration.
MICROSOFT_CLIENT_SECRETClient secret value (generated under Certificates & secrets).
MICROSOFT_REDIRECT_URIMust exactly match the Web redirect URI on the app registration (e.g. https://your-app/api/public/microsoft/oauth/callback).
MICROSOFT_TOKEN_ENCRYPTION_KEY32-byte AES key in base64. Generate with `openssl rand -base64 32`. Used to encrypt tokens at rest.
Database (Lovable Cloud)
SUPABASE_URLProvided by Lovable Cloud.
SUPABASE_SERVICE_ROLE_KEYServer-only. Never exposed to the browser.
Database is available. Encrypted-token schema is deployed.