Skip to content

Issue with /initiateOAuth API on Local Airbyte Instance #50977

Open
@wicky-winner

Description

@wicky-winner

What happened?

Hi ,
I'm running Airbyte on a local instance (http://localhost:8000/), and I'm trying to use the /initiateOAuth API to set up an OAuth-based source (e.g., Google Sheets). However, the API doesn't seem to be working correctly.
Here's what I've done so far:
Verified the Airbyte instance is running and accessible using ngrok.
Used http://127.0.0.1:8080/source: https://e9r8iacv6s.loclx.io/source as the redirect URI during app registration with the OAuth provider.
Tried exposing my local instance with ngrok, but the API still fails to return the expected authentication URL.
Is the /initiateOAuth API supported for local instances? If yes, are there additional steps or configurations needed to make it work?
Any help or guidance would be appreciated! 🙏
Thanks!

What did you expect to happen?

What I expected to happen was that calling the /initiateOAuth API on my local Airbyte instance would behave as same as calling it from cloud instance and return below json as response
{
"consentUrl": "https://accounts.google.com/o/oauth2/v2/auth?client_id=332657581931-0g7mb0kb09cc2g5kkckjne46g45rtoc8.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fapi.airbyte.com%2Fv1%2Foauth%2Fcallback&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fspreadsheets.readonly+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.readonly&access_type=offline&state=fe9FIia&include_granted_scopes=true&prompt=consent"
}:

Abctl Version

$ abctl version
# paste output here

Docker Version

$ docker version
# paste output here

OS Version

# On Linux:
$ cat /etc/os-release
# paste output here

# On Mac:
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions