|
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. |
Replies: 2 comments
|
See the examples at https://github.com/trinodb/trino-python-client?tab=readme-ov-file#oauth2-authentication.
|
|
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! |
See the examples at https://github.com/trinodb/trino-python-client?tab=readme-ov-file#oauth2-authentication.
external-authenticationis 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 theconnectcall.