Skip to main content
You can use multiple custom OAuth clients for the same integration. Set one client for your entire workspace and assign additional clients to specific user groups. This lets different groups use the same integration with different OAuth clients.

How Custom OAuth Works

When you configure a custom OAuth client, Langdock routes new authentication flows through the OAuth application assigned to each user instead of the default Langdock client. A client for the entire workspace applies by default, while group clients apply to members of the assigned groups. This means:
  • Your branding (custom name and logo) appears in consent screens
  • Your tenant policies control user access and admin consent requirements
  • Your rate limits apply to API calls made by your users
  • Your user groups can authenticate through separate OAuth clients
1

Create OAuth App at Provider

Register a new OAuth application in your provider’s developer portal (Google Cloud Console, Microsoft Azure, etc.).Required Configuration:
  • Copy the exact redirect URL from Langdock’s integration settings
  • Select all required scopes shown in Langdock for that integration
  • Configure any tenant-specific settings (admin consent, allowlisting)
2

Gather Credentials

Note down the following from your OAuth app:
  • Client ID (always required)
  • Client secret (required for most integrations)
  • Tenant ID (optional, shown for Microsoft integrations only)
3

Configure in Langdock

Go to Workspace settings → Integrations, select the integration, and scroll to Bring your own OAuth Client.Click Add another OAuth client when the integration includes a Langdock client. If the integration requires your own client, click Configure your OAuth client to use this integration.In the configuration dialog, copy the Redirect URL into your OAuth app and review the Scopes section. Make sure all listed scopes are enabled in your OAuth app — missing scopes will cause an insufficient scopes error. You can copy all scopes at once using the copy button.For integrations with action-level permissions, we recommend keeping Sync scopes with enabled actions turned on by default. Langdock then requests the auth scopes plus the scopes required by enabled or shared actions, keeping requested scopes aligned with the actions your workspace can use. Learn more in Manage Action-Level Scopes.Optionally add a descriptive Client name. Under Access, choose Entire workspace or Groups. Enter your Client ID and Client secret (and Tenant ID if prompted for Microsoft integrations), then click Save and confirm the change.Select the saved client from the client list and confirm the switch to activate it.
Once active, new connections for users with access to this client use it immediately and only work if the credentials are valid. Existing connections remain linked to the client they were created with.
4

Test Authentication

Have a user connect their account to verify:
  • Consent screen shows your client
  • Required scopes are granted
  • Data access works as expected through actions

Assign OAuth Clients to User Groups

Use group access when different parts of your organization need separate OAuth applications for the same integration. For example, assign one client to a subsidiary with its own Microsoft Entra tenant, or use a separate client when a department needs a different approved scope set. The client for your entire workspace remains the default for everyone who is not covered by a group client.
1

Add another custom client

Outlook Email integration settings with Add another OAuth client selected
Click Add another OAuth client. Optionally give the client a descriptive name so you can identify it in the client list.
2

Manage client access

OAuth client access settings with user groups selected
In the Access section, select Groups, then click Manage to choose the user group that should use this client.
3

Add credentials

Enter the Client ID, Client secret, and any fields required by the provider. Click Save and confirm the change. Select the saved client from the client list and confirm the switch to activate it.
Keep a client active for the entire workspace if users without a group client need to connect. A user cannot belong to groups assigned to two active OAuth clients for the same integration.

Integration Settings Interface

The configuration dialog contains the following sections:
A read-only field displaying the redirect URL your OAuth app must use. Click the copy button to copy it exactly. The URL format is:
The redirect URL must match exactly. Any mismatch will cause redirect_uri_mismatch errors. The exact domain depends on your Langdock deployment — always copy the redirect URL from the dialog rather than constructing it manually.

Manage Custom OAuth Clients

Each card shows the client name, access type, scope mode, and active status.
  • Select an inactive client card to activate it.
  • Select an active custom client card to deactivate it.
  • Click the settings icon to edit the client.
  • Open the client settings and click Delete OAuth client credentials to remove it.
  • Select Langdock client to use the managed client for new connections. This deactivates all custom clients.
You can keep several group clients active when their members do not overlap. Only one client for the entire workspace can be active for an integration.
Deactivating a client stops new connections from using it. Existing connections remain linked to their selected client. If you delete a client, existing access tokens can continue working until authentication fails. Users must then reauthorize with an eligible active client.

Common Configuration Errors

Cause: Redirect URL doesn’t match exactly between Langdock and your OAuth appSolution:
  • Copy the redirect URL from Langdock exactly
  • Check for trailing slashes or protocol mismatches
  • Verify you’re configuring the correct environment
Cause: Client ID or Client secret is incorrectSolution:
  • Double-check credentials from your OAuth app
  • Ensure no extra spaces or characters
  • Verify the client is enabled in your provider’s console
Cause: Missing required scopes in your OAuth appSolution:
  • Add all scopes shown in Langdock to your OAuth app
  • Users may need to reconnect after adding scopes
  • Verify scope names match exactly (case-sensitive)
Cause: At least one user belongs to a group covered by another active OAuth client.Solution:
  • Review the groups assigned to both clients
  • Remove the overlapping group assignment or membership
  • Activate the client again

Integrations Requiring Your Own OAuth Client

Some of our integrations can only be used when providing your own OAuth client. Details on how to connect them with Langdock are described in this section.

ServiceNow

Snowflake

Configuring your own OAuth client for Snowflake gives you control over authentication policies, token validity periods, and IP allowlisting within your Snowflake environment.