kapa.ai
10/03/2025, 8:21 AMclient_id and client_secret for OAuth2 token generation. In Airbyte's Connector Builder UI, the recommended way to handle this is by using the Declarative OAuth Connector Specification. This approach allows you to customize the parameters sent during the OAuth flow, including adding extra fields like your required id parameter. According to the documentation, when you enable Declarative OAuth, you can configure the Access Token URL and specify custom query parameters and headers for the token request. This includes the ability to add additional parameters as needed for your API. For example, you can define custom query parameters (such as your id) to be included in the token exchange request. The UI supports configuring these fields, and you can use parameter placeholders and overrides for custom field names if the API expects them to be named differently. Here’s a relevant excerpt: > You can also configure these optional fields if they're required by the source. > - Access Token Headers: ... optional headers to inject while exchanging the auth_code to access_token ... > - Access Token Query Params (Json Encoded): ... optional query parameters to inject while exchanging the auth_code to access_token ... When this property is provided, the query params will be encoded as Json and included in the outgoing API request. > - ... [various key overrides for custom parameter names] ... > [OAuth 2 in Connector Builder UI](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/authentication#oauth-2) If you do not see the option to add custom parameters in the UI, ensure you have enabled the Declarative OAuth Connector Specification. If the UI still does not expose the flexibility you need, you may need to switch to the YAML editor view to manually add the required parameters, as the visual interface may not support all advanced configurations. If the API's requirements are even more complex (e.g., custom signing, multi-step authentication), you would need to use the low-code CDK or Python CDK, but for your described use case, the Declarative OAuth configuration should suffice and does not require custom code maintenance. If you need step-by-step guidance on where to add these parameters in the UI or YAML, let me know!