<@U04S8PLJWMT> I want to re-authenticate a user fo...
# replication-ask-ai
k
@kapa.ai I want to re-authenticate a user for a source and I am using Airbyte rest apis. How can i do that
k
Based on the provided knowledge, the only documented way to (re)authenticate a user for a source via Airbyte’s public API is to use the OAuth initiation endpoint and then use the resulting secret when creating/updating the source. 1. Initiate OAuth for the source Call:
Copy code
POST /sources/initiateOAuth
Content-Type: application/json
Body (example):
Copy code
{
  "sourceType": "your_source_name",
  "redirectUrl": "https://your-app.com/oauth/callback",
  "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
  "oAuthInputConfiguration": {
    "host": "test.snowflake.com"
  }
}
This returns an object containing a
redirect_url
. Redirect your user to that URL so they can authenticate with the source’s identity provider. After successful login, the IdP redirects back to an Airbyte endpoint, which stores the access/refresh tokens as a secret and then redirects to your
redirectUrl
with a
secret_id
query parameter. [Public API OAuth] 2. Use the secret_id when configuring the source The docs you provided do not include the exact payload shape for creating/updating a source with that
secret_id
, so I cannot give a precise request body. The documented part is only that the
secret_id
“can be used to create a source with credentials in place of actual tokens.” [Public API OAuth] Because the knowledge sources do not show a dedicated “re-authenticate source” endpoint or a full example of updating an existing source with a new
secret_id
, I cannot describe that step in more detail with certainty. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
k
@kapa.ai from where I can get help.
k
You can get help with Airbyte in several ways: • In-app support (Airbyte Cloud / Enterprise): Use the support/chat button inside the Airbyte Cloud UI to talk to the AI support agent or open a ticket with the support team. [Get support] • Help Center & Support tickets: Search the Help Center or submit a request at the Support Center for connector setup, errors, or bugs. [Get support] • Community Slack (Core/Open Source): Join the Slack community and ask questions in
#ask-ai
or
#ask-community-for-troubleshooting
. [Getting Support 2.0] • GitHub Discussions: Post questions or ideas in the Airbyte GitHub Discussions forum. [Get support] • Report issues: Open a GitHub issue if you’ve found a bug or doc problem. [Get support] 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.