@@ -108,6 +108,7 @@ def __init__(
108
108
109
109
def _build_client (self , client_credential , authority ):
110
110
client_assertion = None
111
+ client_assertion_type = None
111
112
default_body = {"client_info" : 1 }
112
113
if isinstance (client_credential , dict ):
113
114
assert ("private_key" in client_credential
@@ -117,6 +118,7 @@ def _build_client(self, client_credential, authority):
117
118
sha1_thumbprint = client_credential .get ("thumbprint" ))
118
119
client_assertion = signer .sign_assertion (
119
120
audience = authority .token_endpoint , issuer = self .client_id )
121
+ client_assertion_type = Client .CLIENT_ASSERTION_TYPE_JWT
120
122
else :
121
123
default_body ['client_secret' ] = client_credential
122
124
server_configuration = {
@@ -135,6 +137,7 @@ def _build_client(self, client_credential, authority):
135
137
},
136
138
default_body = default_body ,
137
139
client_assertion = client_assertion ,
140
+ client_assertion_type = client_assertion_type ,
138
141
on_obtaining_tokens = self .token_cache .add ,
139
142
on_removing_rt = self .token_cache .remove_rt ,
140
143
on_updating_rt = self .token_cache .update_rt ,
0 commit comments