I'm having problems using Python SDK and authentic...
# ask-ai
m
I'm having problems using Python SDK and authentication, could you tell us how to implement this instance correctly ? client_credentials=models.SchemeClientCredentials() @kapa.ai
k
Based on the information provided in the knowledge sources, I can help you with implementing the authentication using the Python SDK for Airbyte. It appears you're trying to use the client credentials authentication method. Here's how you can correctly implement this instance:
Copy code
python import airbyte_api from airbyte_api import models, api  s = airbyte_api.AirbyteAPI(     security=models.Security(         client_credentials=models.SchemeClientCredentials(             client_id=client_id,             client_secret=client_secret,             TOKEN_URL="/v1/applications/token",         ),     ), )
This code snippet is from the [Github Issue about Salesforce source](https://github.com/airbytehq/airbyte/issues/43461). Make sure to replace
client_id
and
client_secret
with your actual client ID and client secret. To obtain these credentials, you need to follow these steps: 1. Log into the Airbyte UI and go to the
settings/applications
page. 2. Create an application to get a pair of
client_id
and
client_secret
credentials. 3. Use these credentials to make a request to obtain an access token. For more detailed information on configuring API access and obtaining the necessary credentials, you can refer to the [Configuring API Access documentation](https://docs.airbyte.com/enterprise-setup/api-access-config). If you're still experiencing issues or need more specific guidance, please provide more details about the problem you're encountering.