@@ -115,6 +115,7 @@ def _get_authority_aliases(self):
115115
116116 def _build_client (self , client_credential , authority ):
117117 client_assertion = None
118+ client_assertion_type = None
118119 default_body = {"client_info" : 1 }
119120 if isinstance (client_credential , dict ):
120121 assert ("private_key" in client_credential
@@ -124,6 +125,7 @@ def _build_client(self, client_credential, authority):
124125 sha1_thumbprint = client_credential .get ("thumbprint" ))
125126 client_assertion = signer .sign_assertion (
126127 audience = authority .token_endpoint , issuer = self .client_id )
128+ client_assertion_type = Client .CLIENT_ASSERTION_TYPE_JWT
127129 else :
128130 default_body ['client_secret' ] = client_credential
129131 server_configuration = {
@@ -142,6 +144,7 @@ def _build_client(self, client_credential, authority):
142144 },
143145 default_body = default_body ,
144146 client_assertion = client_assertion ,
147+ client_assertion_type = client_assertion_type ,
145148 on_obtaining_tokens = self .token_cache .add ,
146149 on_removing_rt = self .token_cache .remove_rt ,
147150 on_updating_rt = self .token_cache .update_rt ,
0 commit comments