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

Support for all Trino auth mechanisms #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cccs-nik
Copy link

Any chance fugue_trino could support the other authentication mechanisms trino-python-client provides (https://github.com/trinodb/trino-python-client/blob/47bbdd8d1cfd1b5dc0dea0fe9e915aeff769639d/README.md#authentication-mechanisms)? For example, in our environment we provide a custom class that is a subclass of trino.auth.JWTAuthentication for auth. This PR is a quick proof of concept that allows fugue_trino to use authentication methods beyond BasicAuthentication.

Cheers

@goodwanghan
Copy link
Contributor

@cccs-nik thanks for your contribution! Could you also test the new auth method in your environment?

@cccs-nik
Copy link
Author

cccs-nik commented Sep 6, 2023

Sorry for the late reply @goodwanghan. Yup it looks good to me in our environment! I get to the point of trying to create the temp schema which gives me a permission error (I still need to tweak our Trino deployment). I can see the errored out query with my user in the Trino UI.

@cccs-nik
Copy link
Author

Any insight in the failing test @goodwanghan? It fails for me on the master branch as well.

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

Successfully merging this pull request may close these issues.

2 participants