microsoft-agents-authentication-msal 0.4.0.dev18__py3-none-any.whl → 0.5.0.dev5__py3-none-any.whl

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.
@@ -28,7 +28,7 @@ class MsalConnectionManager(Connections):
28
28
  Initialize the MSAL connection manager.
29
29
 
30
30
  :arg connections_configurations: A dictionary of connection configurations.
31
- :type connections_configurations: Dict[str, AgentAuthConfiguration]
31
+ :type connections_configurations: Dict[str, :class:`microsoft_agents.hosting.core.AgentAuthConfiguration`]
32
32
  :arg connections_map: A list of connection mappings.
33
33
  :type connections_map: List[Dict[str, str]]
34
34
  :raises ValueError: If no service connection configuration is provided.
@@ -64,9 +64,9 @@ class MsalConnectionManager(Connections):
64
64
  Get the OAuth connection for the agent.
65
65
 
66
66
  :arg connection_name: The name of the connection.
67
- :type connection_name: str
67
+ :type connection_name: Optional[str]
68
68
  :return: The OAuth connection for the agent.
69
- :rtype: AccessTokenProviderBase
69
+ :rtype: :class:`microsoft_agents.hosting.core.AccessTokenProviderBase`
70
70
  """
71
71
  # should never be None
72
72
  return self._connections.get(connection_name, None)
@@ -74,6 +74,9 @@ class MsalConnectionManager(Connections):
74
74
  def get_default_connection(self) -> AccessTokenProviderBase:
75
75
  """
76
76
  Get the default OAuth connection for the agent.
77
+
78
+ :return: The default OAuth connection for the agent.
79
+ :rtype: :class:`microsoft_agents.hosting.core.AccessTokenProviderBase`
77
80
  """
78
81
  # should never be None
79
82
  return self._connections.get("SERVICE_CONNECTION", None)
@@ -85,11 +88,11 @@ class MsalConnectionManager(Connections):
85
88
  Get the OAuth token provider for the agent.
86
89
 
87
90
  :arg claims_identity: The claims identity of the bot.
88
- :type claims_identity: ClaimsIdentity
91
+ :type claims_identity: :class:`microsoft_agents.hosting.core.ClaimsIdentity`
89
92
  :arg service_url: The service URL of the bot.
90
93
  :type service_url: str
91
94
  :return: The OAuth token provider for the agent.
92
- :rtype: AccessTokenProviderBase
95
+ :rtype: :class:`microsoft_agents.hosting.core.AccessTokenProviderBase`
93
96
  :raises ValueError: If no connection is found for the given audience and service URL.
94
97
  """
95
98
  if not claims_identity or not service_url:
@@ -130,5 +133,8 @@ class MsalConnectionManager(Connections):
130
133
  def get_default_connection_configuration(self) -> AgentAuthConfiguration:
131
134
  """
132
135
  Get the default connection configuration for the agent.
136
+
137
+ :return: The default connection configuration for the agent.
138
+ :rtype: :class:`microsoft_agents.hosting.core.AgentAuthConfiguration`
133
139
  """
134
140
  return self._service_connection_configuration
@@ -1,15 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-authentication-msal
3
- Version: 0.4.0.dev18
3
+ Version: 0.5.0.dev5
4
4
  Summary: A msal-based authentication library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
+ License-Expression: MIT
6
7
  Project-URL: Homepage, https://github.com/microsoft/Agents
7
8
  Classifier: Programming Language :: Python :: 3
8
- Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.9
11
- Requires-Dist: microsoft-agents-hosting-core==0.4.0.dev18
11
+ License-File: LICENSE
12
+ Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev5
12
13
  Requires-Dist: msal>=1.31.1
13
14
  Requires-Dist: requests>=2.32.3
14
15
  Requires-Dist: cryptography>=44.0.0
16
+ Dynamic: license-file
15
17
  Dynamic: requires-dist
@@ -0,0 +1,8 @@
1
+ microsoft_agents/authentication/msal/__init__.py,sha256=hjPpakL4zyqeCTEBOUCcHaRnSpG80q-L0csG5HMalYI,151
2
+ microsoft_agents/authentication/msal/msal_auth.py,sha256=A5CuO-JY7g03tzuuLPeKzUUQ-fsg9PLMwNe_2k7U_pY,15337
3
+ microsoft_agents/authentication/msal/msal_connection_manager.py,sha256=v7o0ONzjId1G6Ta7IjHc1NtSeM3NWH4t7YilrwJzvYg,5713
4
+ microsoft_agents_authentication_msal-0.5.0.dev5.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
5
+ microsoft_agents_authentication_msal-0.5.0.dev5.dist-info/METADATA,sha256=r_m09m3ECsg9T8a8qYDBbreAciBTzIV8cp7oRQe21U8,602
6
+ microsoft_agents_authentication_msal-0.5.0.dev5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ microsoft_agents_authentication_msal-0.5.0.dev5.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
8
+ microsoft_agents_authentication_msal-0.5.0.dev5.dist-info/RECORD,,
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -1,7 +0,0 @@
1
- microsoft_agents/authentication/msal/__init__.py,sha256=hjPpakL4zyqeCTEBOUCcHaRnSpG80q-L0csG5HMalYI,151
2
- microsoft_agents/authentication/msal/msal_auth.py,sha256=A5CuO-JY7g03tzuuLPeKzUUQ-fsg9PLMwNe_2k7U_pY,15337
3
- microsoft_agents/authentication/msal/msal_connection_manager.py,sha256=4aRJPi0uZMMnRsyewJMte5mbHiWpjnHTtHSiVr8-cyY,5258
4
- microsoft_agents_authentication_msal-0.4.0.dev18.dist-info/METADATA,sha256=TdYhC7OIGGutyvGtl3y8gebi5VbAsIzl2bx2dSSSzRI,587
5
- microsoft_agents_authentication_msal-0.4.0.dev18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- microsoft_agents_authentication_msal-0.4.0.dev18.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
7
- microsoft_agents_authentication_msal-0.4.0.dev18.dist-info/RECORD,,