Prerequisites
- Microsoft account (personal or organizational)
- Access to Azure Portal
Step 1: Sign in to Azure Portal
- Visit https://portal.azure.com/ and sign in with your Microsoft account
- In the left sidebar or search bar, navigate to Microsoft Entra ID
- Click App registrations under the Manage section


Step 2: Register an Application
- Click New registration at the top of the App registrations page
-
Fill out the registration form:
- Name: Choose a descriptive app name (e.g., your brand name)
- Supported account types: Select Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)
- Redirect URI: Select Web and enter
https://api.klavis.ai/oauth/azure-ad/callback
- Click Register

Step 3: Get Client ID and Create Client Secret
After registration, you’ll be redirected to the application overview page.- From the Overview page, copy the Application (client) ID - you’ll need this later

- In the left sidebar, go to Certificates & secrets
- Click the Client secrets tab
- Click New client secret

-
In the dialog:
- Description: Enter a description (e.g.,
klavis-api) - Expires: Select an expiration period (Recommended: 730 days / 24 months)
- Description: Enter a description (e.g.,
- Click Add

- Important: Copy the Value immediately - it will only be shown once!

You have successfully created a Microsoft Azure OAuth application! You now have your Application (client) ID and Client Secret ready for integration with Klavis AI.
OAuth scopes are configured automatically by Klavis when initiating the OAuth flow. You don’t need to manually set API permissions in Azure Portal, as web-configured scopes are handled dynamically based on which Microsoft service you’re connecting to (e.g., Microsoft Teams, Outlook, OneDrive).
(Optional) Step 4: Configure Branding
You can customize the branding that users see during the OAuth consent screen:- In your app’s left sidebar, go to Branding & properties
-
Configure the following optional fields:
- Logo: Upload your company logo (displayed on the consent screen)
- Home page URL: Your application’s homepage
- Terms of service URL: Link to your terms of service
- Privacy statement URL: Link to your privacy policy
- Click Save

(Optional) Step 5: White Labeling
White labeling allows you to customize the OAuth experience with your own branding instead of Klavis AI’s.
- Configure White Labeling: Go to https://www.klavis.ai/home/white-label
- Add Your Credentials: Enter your Azure Application (client) ID and Client Secret from Step 3
-
Set Redirect URI: Use
https://api.klavis.ai/oauth/azure-ad/callbackor your custom callback URL -
Initiate OAuth: Use your Client ID when starting the OAuth flow:
