microsoft-agents-authentication-msal 0.9.0.dev4__tar.gz → 0.9.0.dev6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {microsoft_agents_authentication_msal-0.9.0.dev4/microsoft_agents_authentication_msal.egg-info → microsoft_agents_authentication_msal-0.9.0.dev6}/PKG-INFO +2 -3
  2. microsoft_agents_authentication_msal-0.9.0.dev6/VERSION.txt +1 -0
  3. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/microsoft_agents/authentication/msal/msal_auth.py +1 -22
  4. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6/microsoft_agents_authentication_msal.egg-info}/PKG-INFO +2 -3
  5. microsoft_agents_authentication_msal-0.9.0.dev6/microsoft_agents_authentication_msal.egg-info/requires.txt +3 -0
  6. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/setup.py +0 -1
  7. microsoft_agents_authentication_msal-0.9.0.dev4/VERSION.txt +0 -1
  8. microsoft_agents_authentication_msal-0.9.0.dev4/microsoft_agents_authentication_msal.egg-info/requires.txt +0 -4
  9. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/LICENSE +0 -0
  10. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/MANIFEST.in +0 -0
  11. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/microsoft_agents/authentication/msal/__init__.py +0 -0
  12. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/microsoft_agents/authentication/msal/errors/__init__.py +0 -0
  13. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/microsoft_agents/authentication/msal/errors/error_resources.py +0 -0
  14. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/microsoft_agents/authentication/msal/msal_connection_manager.py +0 -0
  15. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/microsoft_agents_authentication_msal.egg-info/SOURCES.txt +0 -0
  16. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/microsoft_agents_authentication_msal.egg-info/dependency_links.txt +0 -0
  17. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/microsoft_agents_authentication_msal.egg-info/top_level.txt +0 -0
  18. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/pyproject.toml +0 -0
  19. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/readme.md +0 -0
  20. {microsoft_agents_authentication_msal-0.9.0.dev4 → microsoft_agents_authentication_msal-0.9.0.dev6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-authentication-msal
3
- Version: 0.9.0.dev4
3
+ Version: 0.9.0.dev6
4
4
  Summary: A msal-based authentication library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,10 +15,9 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-hosting-core==0.9.0.dev4
18
+ Requires-Dist: microsoft-agents-hosting-core==0.9.0.dev6
19
19
  Requires-Dist: msal>=1.34.0
20
20
  Requires-Dist: requests>=2.32.3
21
- Requires-Dist: cryptography>=44.0.0
22
21
  Dynamic: license-file
23
22
  Dynamic: requires-dist
24
23
 
@@ -17,9 +17,6 @@ from msal import (
17
17
  TokenCache,
18
18
  )
19
19
  from requests import Session
20
- from cryptography.x509 import load_pem_x509_certificate
21
- from cryptography.hazmat.backends import default_backend
22
- from cryptography.hazmat.primitives import hashes
23
20
 
24
21
  from microsoft_agents.activity._utils import _DeferredString
25
22
 
@@ -212,26 +209,8 @@ class MsalAuth(AccessTokenProviderBase):
212
209
  elif self._msal_configuration.AUTH_TYPE == AuthTypes.client_secret:
213
210
  self._client_credential_cache = self._msal_configuration.CLIENT_SECRET
214
211
  elif self._msal_configuration.AUTH_TYPE == AuthTypes.certificate:
215
- with open(self._msal_configuration.CERT_KEY_FILE) as file:
216
- logger.info(
217
- "Loading certificate private key for MSAL authentication."
218
- )
219
- private_key = file.read()
220
-
221
- with open(self._msal_configuration.CERT_PEM_FILE) as file:
222
- logger.info("Loading public certificate for MSAL authentication.")
223
- public_certificate = file.read()
224
-
225
- # Create an X509 object and calculate the thumbprint
226
- logger.info("Calculating thumbprint for the public certificate.")
227
- cert = load_pem_x509_certificate(
228
- data=bytes(public_certificate, "UTF-8"), backend=default_backend()
229
- )
230
- thumbprint = cert.fingerprint(hashes.SHA1()).hex()
231
-
232
212
  self._client_credential_cache = {
233
- "thumbprint": thumbprint,
234
- "private_key": private_key,
213
+ "private_key_pfx_path": self._msal_configuration.CERT_PFX_FILE,
235
214
  }
236
215
  else:
237
216
  logger.error(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-authentication-msal
3
- Version: 0.9.0.dev4
3
+ Version: 0.9.0.dev6
4
4
  Summary: A msal-based authentication library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,10 +15,9 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-hosting-core==0.9.0.dev4
18
+ Requires-Dist: microsoft-agents-hosting-core==0.9.0.dev6
19
19
  Requires-Dist: msal>=1.34.0
20
20
  Requires-Dist: requests>=2.32.3
21
- Requires-Dist: cryptography>=44.0.0
22
21
  Dynamic: license-file
23
22
  Dynamic: requires-dist
24
23
 
@@ -0,0 +1,3 @@
1
+ microsoft-agents-hosting-core==0.9.0.dev6
2
+ msal>=1.34.0
3
+ requests>=2.32.3
@@ -15,6 +15,5 @@ setup(
15
15
  f"microsoft-agents-hosting-core=={package_version}",
16
16
  "msal>=1.34.0",
17
17
  "requests>=2.32.3",
18
- "cryptography>=44.0.0",
19
18
  ],
20
19
  )
@@ -1 +0,0 @@
1
- 0.9.0.dev4
@@ -1,4 +0,0 @@
1
- microsoft-agents-hosting-core==0.9.0.dev4
2
- msal>=1.34.0
3
- requests>=2.32.3
4
- cryptography>=44.0.0