Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default token_url appears to be wrong on class SchemeClientCredentials #106

Open
FredericoCoelhoNunes opened this issue Sep 26, 2024 · 0 comments

Comments

@FredericoCoelhoNunes
Copy link

FredericoCoelhoNunes commented Sep 26, 2024

Description

I was instantiating my connection to the AirbyteAPI in the following way

s = airbyte_api.AirbyteAPI(
    security=models.Security(
        client_credentials=models.SchemeClientCredentials(
            client_id='...',
            client_secret='...'
        ),
    )
)

obtaining an error when performing a request:

Exception: Unexpected status code 404 from token endpoint

The default value for the token_url parameter on SchemeClientCredentials is /applications/token.

When I set the parameter token_url="/v1/applications/token" (note the added /v1) everything works fine and I am able to perform the request.

Additional Information

  • version: airbyte-api==0.52.1 (latest available at time of writing)
  • Airbyte Cloud user
@FredericoCoelhoNunes FredericoCoelhoNunes changed the title Default token URL appears to be wrong on class SchemeClientCredentials Default token_url appears to be wrong on class SchemeClientCredentials Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant