trino-python-client icon indicating copy to clipboard operation
trino-python-client copied to clipboard

Client Credentials OAuth2 Authentication

Open c-thiel opened this issue 11 months ago • 2 comments

Describe the feature

First of all thank you for the already great OAuth support 🙏! Currently the OAuth2Authentication supports the Authorization code flow, which is great for Humans. What is currently missing is native support for the Client Credential flow. It would be great if we could add this for easier authentication for technical users.

Describe alternatives you've considered

Implement the class myself.

I probably won't find time for the PR short-term, but could contribute it later.

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

c-thiel avatar Jan 05 '25 13:01 c-thiel

Trino itself does not support the flow: https://github.com/trinodb/trino/issues/15836 However I believe trino would be the wrong place to implement it anyway.

For Applications, the login flow to trino should happen in the client - python trino in this case. So we should implement it here and not in trino itself.

c-thiel avatar Jan 06 '25 08:01 c-thiel

I have a proposal for 3 different Trino clients.

https://docs.google.com/document/d/17nn_8MeIfqPQO3T6CvbZcCUwxHgoBKnbNVVEngA0uJg/

dprophet avatar Oct 15 '25 19:10 dprophet