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

Support object as value in extra_credential

Open huw0 opened this issue 1 year ago • 0 comments

Description

I want extra_credential to accept an object as a value. This is helpful because it allows pass through of short lived tokens (JWT or otherwise) that can be refreshed by the client without having to generate a new engine/client object.

Presently this is not possible because parse_quote does a check on the object type.

Therefore it is necessary to call str() on the extra_credential value during serialisation.

Non-technical explanation

Support object as value in extra_credential to support refreshing tokens.

Release notes

( ) This is not user-visible or docs only and no release notes are required. ( ) Release notes are required, please propose a release note for me. (x) Release notes are required, with the following suggested text:

* Support object as value in `extra_credential` to support refreshing tokens.

huw0 avatar May 07 '24 08:05 huw0