hi <@U04S8PLJWMT> I just open my old custom conne...
# ask-ai
x
hi @kapa.ai I just open my old custom connector that works well but I can't test it in airbyte cloud since the authentication is now legacy and tells me to click on authenticate
Copy code
Missing necessary OAuth token. Click the "Authenticate your account for testing" button to populate the token.
But when I can't authenticate without issues
k
It appears that Airbyte Cloud has updated its OAuth authentication flow, and legacy (partial/manual) OAuth methods are no longer supported in the same way as before. Previously, you could manually provide access and refresh tokens for custom connectors, but now Airbyte Cloud expects you to use the new OAuth flow, which requires clicking the "Authenticate your account for testing" button. This button initiates the OAuth process, but for legacy connectors, this may not work as expected, especially if your connector was built to accept tokens manually. This change is confirmed by recent issues and discussions, where users report that legacy OAuth flows (where you manually enter tokens) are no longer available in the UI, and the platform now expects a more integrated OAuth experience. For example, the RD Station Marketing connector issue highlights that connectors without a declarative OAuth implementation are no longer compatible with the new flow, and the UI no longer exposes fields for manual token entry. Instead, the connector must be updated to use the new Declarative OAuth Flow, or you must continue to use an older version of Airbyte that supports manual token entry for testing and configuration purposes. This is especially relevant for Airbyte Cloud and versions 1.4 and above, where these changes have been enforced [source-rd-station-marketing issue](https://github.com/airbytehq/airbyte/issues/52684). If you need to continue using manual token entry for testing, you may need to either: - Update your connector to support the new Declarative OAuth Flow, or - Use a self-managed (OSS) Airbyte instance with a version that still supports legacy OAuth/manual token entry. Unfortunately, the knowledge sources do not provide a workaround for enabling manual token entry in the current Airbyte Cloud UI. If you are blocked, consider raising a support ticket with Airbyte Cloud or migrating your testing to a local OSS instance where you have more control over authentication flows. For more details on the legacy OAuth flow and its limitations, see the documentation: [Partial OAuth (legacy)](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/authentication#partial-oauth-legacy). For the new approach, see the OAuth documentation: [Using OAuth to Connect](https://docs.airbyte.com/platform/using-airbyte/oauth).
x
@kapa.ai The connector asks me for CONSENT URL and ACCESS TOKEN URL It's seems that we need to set https://cloud.airbyte.com/auth_flow ?
k
A message from kapa.ai
No, you should not set the Consent URL or Access Token URL to
https://cloud.airbyte.com/auth_flow
. The Consent URL and Access Token URL must be the endpoints provided by the API you are connecting to, not Airbyte Cloud. For example, if you are integrating with a third-party service, you need to use that service’s OAuth endpoints: - Consent URL: The URL where users are redirected to authorize the connector (e.g., `https://yourconnectorservice.com/oauth/consent`). - Access Token URL: The URL where the connector exchanges the authorization code for an access token (e.g., `https://yourconnectorservice.com/oauth/token`). These URLs are specific to the API you are connecting to, and you must obtain them from that API’s documentation. Airbyte Cloud acts as the platform to facilitate the OAuth flow, but it does not provide the OAuth endpoints for your data source. For more details and examples, see the [Declarative OAuth 2.0 documentation](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/oauth#basic-oauth-flow), which shows how to configure these URLs for your connector. The URLs should always point to the data provider’s OAuth endpoints, not to Airbyte Cloud itself. If you need to see a sample configuration, refer to the "Basic OAuth Flow" example in the documentation, which demonstrates how to set these fields properly for a custom connector [source](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/oauth#basic-oauth-flow).
x
@kapa.ai i have this message from airbyte When configuring your OAuth app, set the callback or redirect URL to https://cloud.airbyte.com/auth_flow
k
A message from kapa.ai
Yes, the message from Airbyte is correct: **when you register your OAuth application with the third-party service (the API you want to connect to), you should set the callback or redirect URL to `https://cloud.airbyte.com/auth_flow`**. This means that after the user authorizes Airbyte to access their data, the third-party service will redirect back to Airbyte Cloud at this URL to complete the OAuth flow. This is a standard requirement for OAuth integrations in Airbyte Cloud and is documented in the OAuth setup instructions: > Confirm that the redirect URI registered with the third-party platform matches the URI used by Airbyte. Airbyte's user interface provides this URI when you set up a new connector. Make sure you enter this value exactly [Using OAuth to Connect](https://docs.airbyte.com/platform/using-airbyte/oauth). Summary: - In your OAuth app settings (on the third-party platform), set the redirect/callback URI to:
Copy code
https://cloud.airbyte.com/auth_flow
- In your Airbyte connector configuration, use the third-party API's Consent URL and Access Token URL (not the Airbyte Cloud URL). This ensures the OAuth flow works correctly in Airbyte Cloud.
x
@kapa.ai when I set the consent url and access token url of my third party tool it returns AADSTS900561: The endpoint only accepts POST, OPTIONS requests. Received a GET request.
k
A message from kapa.ai
The error message
AADSTS900561: The endpoint only accepts POST, OPTIONS requests. Received a GET request.
indicates that the Access Token URL you configured expects a POST request, but a GET request was made instead. In Airbyte's declarative OAuth configuration, you can specify the HTTP method for the token exchange. By default, some configurations may use GET, but most OAuth token endpoints (including Microsoft/Azure AD, which uses AADSTS errors) require a POST request. What to do: - Ensure that in your connector's OAuth configuration, the Access Token URL is set to use the POST method, not GET. - In the declarative YAML or UI, look for an option to specify the HTTP method for the token request and set it to POST. The knowledge sources confirm that you can configure the HTTP method for requests in Airbyte's config-based connectors, including OAuth flows. For example, the
HttpRequester
allows you to set the
http_method
property, which should be set to
POST
for token exchanges if required by the API ([Understanding the YAML file: Requester](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/requester)). If you are using the UI, ensure that the OAuth 2.0 configuration for the Access Token URL is set to POST, as required by your third-party tool. If you do not see an option to set the HTTP method in the UI, you may need to update your connector's manifest YAML to explicitly set the method to POST for the token exchange step. Summary: Set the HTTP method for your Access Token URL to POST to resolve this error, as required by your third-party OAuth provider.
x
@kapa.ai no there is no method in UI and documentation is not well written. What Happens ? When airbyte cloud has changed the way auth flow is working ?
k
A message from kapa.ai
Airbyte Cloud has indeed changed how OAuth authentication flows work, especially for custom and legacy connectors. Previously, you could manually enter tokens or use partial OAuth flows, but now Airbyte Cloud requires a more integrated, declarative OAuth 2.0 flow. This means: - Manual token entry and legacy OAuth flows are no longer supported in the Airbyte Cloud UI. Instead, you must configure the connector to use the new declarative OAuth 2.0 specification, which automates the consent and token exchange process through the UI. The UI now expects you to click an "Authenticate" button, which triggers the OAuth flow and populates the token automatically. - You must provide the Consent URL and Access Token URL from your third-party provider, not from Airbyte. The redirect URI you register with your provider must be
https://cloud.airbyte.com/auth_flow
so Airbyte Cloud can complete the OAuth process [Using OAuth to Connect](https://docs.airbyte.com/platform/using-airbyte/oauth). - The declarative OAuth 2.0 flow is highly configurable, but some advanced options (like HTTP method for the token exchange) may not be exposed in the UI yet. The documentation describes the declarative approach and its flexibility, but does not specify every UI detail or limitation [Declarative OAuth 2.0](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/oauth). If your third-party provider requires a POST request for the token exchange and the UI does not allow you to set this, you may be blocked until Airbyte updates the UI to support this configuration, or you may need to define your connector using a YAML manifest where you can specify the HTTP method. In summary: Airbyte Cloud now enforces a declarative OAuth 2.0 flow for authentication, removing support for legacy/manual methods. Some advanced configuration options may not be available in the UI, and if your use case requires them, you may need to wait for further UI improvements or use a self-managed Airbyte instance where you have more control. The knowledge sources do not provide a workaround for this limitation in the current Airbyte Cloud UI.