@@ -50,11 +50,15 @@ def get_exceptions(self) -> Tuple[Any, ...]:
50
50
51
51
52
52
class KerberosAuthentication (Authentication ):
53
+ MUTUAL_REQUIRED = 1
54
+ MUTUAL_OPTIONAL = 2
55
+ MUTUAL_DISABLED = 3
56
+
53
57
def __init__ (
54
58
self ,
55
59
config : Optional [str ] = None ,
56
60
service_name : Optional [str ] = None ,
57
- mutual_authentication : bool = False ,
61
+ mutual_authentication : int = MUTUAL_REQUIRED ,
58
62
force_preemptive : bool = False ,
59
63
hostname_override : Optional [str ] = None ,
60
64
sanitize_mutual_error_response : bool = True ,
@@ -117,11 +121,15 @@ def __eq__(self, other: object) -> bool:
117
121
118
122
119
123
class GSSAPIAuthentication (Authentication ):
124
+ MUTUAL_REQUIRED = 1
125
+ MUTUAL_OPTIONAL = 2
126
+ MUTUAL_DISABLED = 3
127
+
120
128
def __init__ (
121
129
self ,
122
130
config : Optional [str ] = None ,
123
131
service_name : Optional [str ] = None ,
124
- mutual_authentication : bool = False ,
132
+ mutual_authentication : int = MUTUAL_DISABLED ,
125
133
force_preemptive : bool = False ,
126
134
hostname_override : Optional [str ] = None ,
127
135
sanitize_mutual_error_response : bool = True ,
0 commit comments