Initiate OAuth for a source
Changed onGiven a source ID, workspace ID, and redirect URL, initiates OAuth for the source.
This returns a fully formed URL for performing user authentication against the relevant source identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte endpoint which will save the access and refresh tokens off as a secret and return the secret ID to the redirect URL specified in the secret_id query string parameter.
That secret ID can be used to create a source with credentials in place of actual tokens.
Request
- Base URLhttps://api.airbyte.com/v1
- URLhttps://api.airbyte.com/v1/sources/initiateOAuth
- Auth
- HTTP bearer
- or HTTP basic
- or OAuth 2Client credentialsToken URL: /applications/token
Request body
Example request
{
"redirectUrl": "https://cloud.airbyte.io/v1/api/oauth/callback",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"destinationId": "3d93b16c-ff5f-421c-8908-5a3c82088f14"
}Response
Response from the initiate OAuth call should be an object with a single property which will be the redirect_url. If a user is redirected to this URL, they'll be prompted by the identity provider to authenticate.
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
- info
added the new
ticktickenum value to the request property
- info