@@ -108,6 +108,7 @@ def __init__(
108108
109109 def _build_client (self , client_credential , authority ):
110110 client_assertion = None
111+ client_assertion_type = None
111112 default_body = {"client_info" : 1 }
112113 if isinstance (client_credential , dict ):
113114 assert ("private_key" in client_credential
@@ -117,6 +118,7 @@ def _build_client(self, client_credential, authority):
117118 sha1_thumbprint = client_credential .get ("thumbprint" ))
118119 client_assertion = signer .sign_assertion (
119120 audience = authority .token_endpoint , issuer = self .client_id )
121+ client_assertion_type = Client .CLIENT_ASSERTION_TYPE_JWT
120122 else :
121123 default_body ['client_secret' ] = client_credential
122124 server_configuration = {
@@ -135,6 +137,7 @@ def _build_client(self, client_credential, authority):
135137 },
136138 default_body = default_body ,
137139 client_assertion = client_assertion ,
140+ client_assertion_type = client_assertion_type ,
138141 on_obtaining_tokens = self .token_cache .add ,
139142 on_removing_rt = self .token_cache .remove_rt ,
140143 on_updating_rt = self .token_cache .update_rt ,
0 commit comments