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

Cannot connect to Trino via OAUTH2 with SSO credentials #444

Closed
matialm opened this issue Jan 31, 2024 Discussed in #437 · 2 comments · Fixed by #467
Closed

Cannot connect to Trino via OAUTH2 with SSO credentials #444

matialm opened this issue Jan 31, 2024 Discussed in #437 · 2 comments · Fixed by #467
Assignees

Comments

@matialm
Copy link

matialm commented Jan 31, 2024

Discussed in #437

Originally posted by lejanco January 18, 2024
I am trying to connect to trino via oauth2 using the externalauthentication instructions in the README(e.g. keyring). I have tried (what seems like) everything. You can see the commented out efforts here as well. I have done the pip install 'trino[]'

trino_connection = trino.dbapi.connect(host=host, port=port, user=username, catalog=catalog, schema=schema, auth=trino.auth.OAuth2Authentication( # redirect_auth_url_handler=redirect_auth_url_handler ), http_scheme=http_scheme, # verify=False, # extra_credential=[('user', username), # ('password', password), # ("SSL", "true"), # ("SSLVerification", "NONE"), # ("externalAuthentication", "true") # ] )

The debug suggests the token is being retrieved but not being authenticated. Help is greatly appreciated, but please limit suggestions that require admin rights to trino as I do not have that authorization. Thanks:

DEBUG:

@matialm
Copy link
Author

matialm commented Jan 31, 2024

PR created
#445

@hashhar
Copy link
Member

hashhar commented Jul 8, 2024

Useful discussion about what the root cause was can be found at #445 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants