Wrong type of mutual_authentication
in Kerberos/GSSAPI authentication
#513
Labels
bug
Something isn't working
mutual_authentication
in Kerberos/GSSAPI authentication
#513
Expected behavior
In
trino.auth.KerberosAuthentication
class constructor, argumentmutual_authentication
is defined asbool
.I expect
trino.auth.KerberosAuthentication
to allow optional mutual authentication setting.Same also applies to
GSSAPIAuthentication
.Type checker used:
pyright 1.1.382
.Actual behavior
Internally the value of
mutual_authentication
argument is passed torequests_kerberos.HTTPKerberosAuth
, which expects it to be an instance ofint
(REQUIRED = 1
,OPTIONAL = 2
,DISABLED = 3
).This causes two issues:
Steps To Reproduce
Log output
Operating System
macOS 15.2
Trino Python client version
0.330.0
Trino Server version
N/A
Python version
3.12.7
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: