-
I am successfully connecting to Trino servers using the Java CLI and following prompt:
Please help me configure the Python Trino connection that uses external-authentication option. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
See the examples at https://github.com/trinodb/trino-python-client?tab=readme-ov-file#oauth2-authentication.
|
Beta Was this translation helpful? Give feedback.
-
Excellent! The browser authentication worked well with the following code:
Also, note there is no semicolon at the end of the SQL string, otherwise it would give me an error Thanks! |
Beta Was this translation helpful? Give feedback.
See the examples at https://github.com/trinodb/trino-python-client?tab=readme-ov-file#oauth2-authentication.
external-authentication
is a JDBC driver property. In Python client we have different auth classes (you can also add your own) for each auth mechanism so it's just a matter of using the correct auth class in theconnect
call.