BACK TO INTEGRATIONS

Microsoft

oauth2

Microsoft Graph API for Office 365 services including Outlook, OneDrive, SharePoint, Teams, and Calendar.

Setup Instructions

1. Register Azure AD App

Go to https://entra.microsoft.com → Identity → Applications → App registrations → New registration.

2. Configure Redirect URI

Add Web redirect URI: http://localhost:8080/oauth/callback (or your production URL).

3. Create Client Secret

Go to Certificates & secrets → New client secret → Copy the Value immediately.

4. Record Required Values

  • Application (client) ID: from app Overview page
  • Client Secret Value: from step 3

5. Create Connector

Use sl connectors create with config:

{
  "tenant": "common",
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET",
  "scopes": ["openid", "profile", "offline_access", "https://graph.microsoft.com/User.Read"],
  "redirect_uri": "http://localhost:8080/oauth/callback"
}

6. Authorize OAuth

Run sl oauth authorize <connector-id> to complete the OAuth flow.

For detailed documentation, see: https://learn.microsoft.com/en-us/graph/auth-register-app-v2

About

Auth Type
oauth2