Accessing Airbyte API with OAuth Google Account

Summary

User is trying to access the Airbyte API using OAuth Google Account and needs guidance on how to authenticate without using Basic authentication.


Question

Hello <#C021JANJ6TY|>,
I’m working on getting access to the Airbyte API, so long story short what the https://reference.airbyte.com/reference/createaccesstoken|docs suggest is to do a

GET '<https://api.my-airbyte-host.com/v1/connections/>' \
--header 'Authorization: Basic YWlyYnl0ZTpwYXNzd29yZA=='```
which the Basic is "username and password separated by a colon and Base64 encoded"
but I'm using OAuth Google Account, is there a way to get around this?

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1724270426017219) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["airbyte-api", "oauth-google-account", "authentication", "curl", "authorization"]
</sub>

Just saw that, too. It looks like the docs need to be updated a bit on that page.

You will want to follow this https://docs.airbyte.com/using-airbyte/configuring-api-access

Hey Thiago, thanks for flagging this. I just updated the <https://reference.airbyte.com/reference/authentication|API docs on authentication> to remove the outdated references to our old http basic authentication.

Hi, I saw that, but my UI does not show any API menu

You’re on OSS with authentication enabled, right?

Yes, I have deployed on a K8s using Helm Charts, initially we did not used any authentication, but then we added OAuth via Google Account

If you deployed Airbyte without our built-in authentication, then the Airbyte API should not need any api tokens

And the applications page will not be shown

hm I try to make a request to the API, I get an HTML page as return, a google login page

The Applications UI, and the tokens generated by it, use our authentication and permissioning system. It is not enabled unless basic auth is enabled for your instance. Here are some details on authentication in OSS: https://docs.airbyte.com/deploying-airbyte/integrations/authentication

It sounds like the Google login page you are seeing in the response may be because of how the token is getting passed along (or not getting passed along) with how you’ve set up Google OAuth outside of Airbyte’s auth system. That is not something we’d be able to help with on our side, but it’s possible someone in the community has experience with it.

Ohhh got it! Will ask around then! Thanks a lot!!!