microsoft-agents-authentication-msal 1.10.0.dev2__tar.gz → 1.10.0.dev5__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 (22) hide show
  1. {microsoft_agents_authentication_msal-1.10.0.dev2/microsoft_agents_authentication_msal.egg-info → microsoft_agents_authentication_msal-1.10.0.dev5}/PKG-INFO +2 -2
  2. microsoft_agents_authentication_msal-1.10.0.dev5/VERSION.txt +1 -0
  3. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents/authentication/msal/msal_auth.py +13 -10
  4. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5/microsoft_agents_authentication_msal.egg-info}/PKG-INFO +2 -2
  5. microsoft_agents_authentication_msal-1.10.0.dev5/microsoft_agents_authentication_msal.egg-info/requires.txt +4 -0
  6. microsoft_agents_authentication_msal-1.10.0.dev2/VERSION.txt +0 -1
  7. microsoft_agents_authentication_msal-1.10.0.dev2/microsoft_agents_authentication_msal.egg-info/requires.txt +0 -4
  8. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/LICENSE +0 -0
  9. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/MANIFEST.in +0 -0
  10. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents/authentication/msal/__init__.py +0 -0
  11. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents/authentication/msal/errors/__init__.py +0 -0
  12. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents/authentication/msal/errors/error_resources.py +0 -0
  13. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents/authentication/msal/msal_connection_manager.py +0 -0
  14. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents/authentication/msal/msal_token_credential.py +0 -0
  15. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents/authentication/msal/py.typed +0 -0
  16. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents_authentication_msal.egg-info/SOURCES.txt +0 -0
  17. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents_authentication_msal.egg-info/dependency_links.txt +0 -0
  18. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/microsoft_agents_authentication_msal.egg-info/top_level.txt +0 -0
  19. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/pyproject.toml +0 -0
  20. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/readme.md +0 -0
  21. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/setup.cfg +0 -0
  22. {microsoft_agents_authentication_msal-1.10.0.dev2 → microsoft_agents_authentication_msal-1.10.0.dev5}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-authentication-msal
3
- Version: 1.10.0.dev2
3
+ Version: 1.10.0.dev5
4
4
  Summary: A msal-based authentication library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ 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==1.10.0.dev2
18
+ Requires-Dist: microsoft-agents-hosting-core==1.10.0.dev5
19
19
  Requires-Dist: azure-core
20
20
  Requires-Dist: msal>=1.34.0
21
21
  Requires-Dist: requests>=2.32.3
@@ -0,0 +1 @@
1
+ 1.10.0.dev5
@@ -62,9 +62,7 @@ class MsalAuth(AccessTokenProviderBase):
62
62
 
63
63
  # TokenCache is thread-safe and async-safe per MSAL documentation
64
64
  self._token_cache = TokenCache()
65
- logger.debug(
66
- f"Initializing MsalAuth with configuration: {self._msal_configuration}"
67
- )
65
+ logger.debug("Initializing MsalAuth")
68
66
 
69
67
  @property
70
68
  def configuration(self) -> AgentAuthConfiguration:
@@ -115,7 +113,9 @@ class MsalAuth(AccessTokenProviderBase):
115
113
  self._msal_configuration.AUTH_TYPE,
116
114
  ):
117
115
  logger.debug(
118
- f"Requesting access token for resource: {resource_url}, scopes: {scopes}"
116
+ "Requesting access token for resource: %s, scopes: %s",
117
+ resource_url,
118
+ scopes,
119
119
  )
120
120
  valid_uri, instance_uri = self._uri_validator(resource_url)
121
121
  if not valid_uri:
@@ -191,7 +191,7 @@ class MsalAuth(AccessTokenProviderBase):
191
191
  )
192
192
 
193
193
  if "access_token" not in token:
194
- logger.error(f"Failed to acquire token on behalf of user.")
194
+ logger.error("Failed to acquire token on behalf of user.")
195
195
  raise ValueError(
196
196
  authentication_errors.FailedToAcquireToken.format(str(token))
197
197
  )
@@ -199,7 +199,8 @@ class MsalAuth(AccessTokenProviderBase):
199
199
  return token["access_token"]
200
200
 
201
201
  logger.error(
202
- f"On-behalf-of flow is not supported with the current authentication type: {msal_auth_client.__class__.__name__}"
202
+ "On-behalf-of flow is not supported with the current authentication type: %s",
203
+ msal_auth_client.__class__.__name__,
203
204
  )
204
205
  raise NotImplementedError(
205
206
  authentication_errors.OnBehalfOfFlowNotSupportedAuthType.format(
@@ -322,7 +323,8 @@ class MsalAuth(AccessTokenProviderBase):
322
323
  )
323
324
  if "access_token" not in result:
324
325
  logger.error(
325
- f"Failed to acquire token for federated credentials: {result}"
326
+ "Failed to acquire token for federated credentials: %s",
327
+ result,
326
328
  )
327
329
  raise ValueError(
328
330
  authentication_errors.FailedToAcquireToken.format(
@@ -347,7 +349,8 @@ class MsalAuth(AccessTokenProviderBase):
347
349
  client_credential = {"client_assertion": get_assertion}
348
350
  else:
349
351
  logger.error(
350
- f"Unsupported authentication type: {self._msal_configuration.AUTH_TYPE}"
352
+ "Unsupported authentication type: %s",
353
+ self._msal_configuration.AUTH_TYPE,
351
354
  )
352
355
  raise NotImplementedError(
353
356
  str(authentication_errors.AuthenticationTypeNotSupported)
@@ -385,7 +388,7 @@ class MsalAuth(AccessTokenProviderBase):
385
388
  result = urlparse(url_str)
386
389
  return all([result.scheme, result.netloc]), result
387
390
  except AttributeError:
388
- logger.error(f"URI parsing error for {url_str}")
391
+ logger.error("URI parsing error for %s", url_str)
389
392
  return False, None
390
393
 
391
394
  def _resolve_scopes_list(self, instance_url: URI, scopes=None) -> list[str]:
@@ -401,7 +404,7 @@ class MsalAuth(AccessTokenProviderBase):
401
404
  "{instance}", f"{instance_url.scheme}://{instance_url.hostname}"
402
405
  )
403
406
  temp_list.append(scope_placeholder)
404
- logger.debug(f"Resolved scopes: {temp_list}")
407
+ logger.debug("Resolved scopes: %s", temp_list)
405
408
  return temp_list
406
409
 
407
410
  # the call to MSAL is blocking, but in the future we want to create an asyncio task
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-authentication-msal
3
- Version: 1.10.0.dev2
3
+ Version: 1.10.0.dev5
4
4
  Summary: A msal-based authentication library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ 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==1.10.0.dev2
18
+ Requires-Dist: microsoft-agents-hosting-core==1.10.0.dev5
19
19
  Requires-Dist: azure-core
20
20
  Requires-Dist: msal>=1.34.0
21
21
  Requires-Dist: requests>=2.32.3
@@ -0,0 +1,4 @@
1
+ microsoft-agents-hosting-core==1.10.0.dev5
2
+ azure-core
3
+ msal>=1.34.0
4
+ requests>=2.32.3
@@ -1 +0,0 @@
1
- 1.10.0.dev2
@@ -1,4 +0,0 @@
1
- microsoft-agents-hosting-core==1.10.0.dev2
2
- azure-core
3
- msal>=1.34.0
4
- requests>=2.32.3