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.
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

2
Manage client access

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.
Integration Settings Interface
The configuration dialog contains the following sections:- Redirect URL
- Scopes
- Credentials
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:
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.
Common Configuration Errors
redirect_uri_mismatch
redirect_uri_mismatch
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
invalid_client
invalid_client
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
consent_required
consent_required
Cause: Admin consent required but not grantedSolution:
- Grant admin consent in your tenant settings
- Enable user consent if appropriate for your organization
- Check tenant allowlisting requirements
insufficient_scope
insufficient_scope
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)
A group client cannot be activated
A group client cannot be activated
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