From c997d04618a86abe03061132703e6c8d22dc748b Mon Sep 17 00:00:00 2001 From: Rodrigo Brandao Date: Tue, 31 Mar 2026 15:28:15 -0700 Subject: [PATCH] Updating hash function for MsalAuth._client_credential_cache --- .../microsoft_agents/authentication/msal/msal_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py b/libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py index 8c46a7f9..1d82acec 100644 --- a/libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py +++ b/libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_auth.py @@ -227,7 +227,7 @@ def _create_client_application( cert = load_pem_x509_certificate( data=bytes(public_certificate, "UTF-8"), backend=default_backend() ) - thumbprint = cert.fingerprint(hashes.SHA1()).hex() + thumbprint = cert.fingerprint(hashes.SHA256()).hex() self._client_credential_cache = { "thumbprint": thumbprint,