<@U04S8PLJWMT> I want to add a salesforce as a sou...
# ask-ai
h
@kapa.ai I want to add a salesforce as a source in airbyte, but it is asking for the client id , cline secret and auth outh button to validate. isnt there any service account json that I can add ?
k
Airbyte’s Salesforce source connector requires OAuth credentials for authentication—specifically, the Client ID, Client Secret, and Refresh Token. There is no mention in the official documentation or community discussions of supporting a "service account JSON" (like what you might use with Google Cloud services) for Salesforce integration. For Airbyte Open Source, you must manually obtain these OAuth credentials from Salesforce and enter them into Airbyte. The process involves registering a connected app in Salesforce and following a specific flow to get the refresh token. There is no alternative method (such as uploading a service account JSON) documented for authentication with Salesforce in Airbyte at this time. The "Authenticate" button in Airbyte Cloud streamlines this process by handling OAuth for you, but still does not use a service account JSON file—credentials are managed via OAuth flows only [Salesforce Source Setup](https://docs.airbyte.com/integrations/sources/salesforce#for-airbyte-open-source) [Salesforce OAuth Credentials](https://docs.airbyte.com/integrations/sources/salesforce#for-airbyte-open-source-obtain-salesforce-oauth-credentials). If you are looking for a simpler authentication method (such as username/password or service account), this is not currently supported, though there are open feature requests for additional authentication options [[GitHub Issue: support username/password authentication]](https://github.com/airbytehq/airbyte/issues/44376). Summary: You must use OAuth credentials (Client ID, Client Secret, Refresh Token) for Salesforce sources in Airbyte. Service account JSON authentication is not supported.
h
@kapa.ai what about if we add client id , secret and refresh token ?
k
A message from kapa.ai
Yes, if you provide the Client ID, Client Secret, and Refresh Token from your Salesforce connected app, you can authenticate and add Salesforce as a source in Airbyte. This is the standard and required method for both Airbyte Cloud and Airbyte Open Source: - In Airbyte Open Source, you manually enter these three values when setting up the Salesforce source. After entering them, Airbyte will use them to obtain access tokens and connect to Salesforce via OAuth 2.0 [see documentation](https://docs.airbyte.com/integrations/sources/salesforce#for-airbyte-open-source). - In Airbyte Cloud, if you use a custom connector or marketplace connector, you also need to provide these credentials. For Airbyte-managed connectors, the process may be streamlined with an "Authenticate" button, but the underlying mechanism still uses OAuth and these credentials [see details](https://docs.airbyte.com/platform/using-airbyte/oauth). There is no need for a service account JSON—just the Client ID, Client Secret, and Refresh Token are required for authentication with Salesforce in Airbyte [Salesforce OAuth Credentials](https://docs.airbyte.com/integrations/sources/salesforce#for-airbyte-open-source-obtain-salesforce-oauth-credentials).