microsoft-agents-authentication-msal 1.1.0.dev8__tar.gz → 1.1.0.dev9__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.
- {microsoft_agents_authentication_msal-1.1.0.dev8/microsoft_agents_authentication_msal.egg-info → microsoft_agents_authentication_msal-1.1.0.dev9}/PKG-INFO +2 -2
- microsoft_agents_authentication_msal-1.1.0.dev9/VERSION.txt +1 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/microsoft_agents/authentication/msal/msal_connection_manager.py +9 -9
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9/microsoft_agents_authentication_msal.egg-info}/PKG-INFO +2 -2
- microsoft_agents_authentication_msal-1.1.0.dev9/microsoft_agents_authentication_msal.egg-info/requires.txt +3 -0
- microsoft_agents_authentication_msal-1.1.0.dev8/VERSION.txt +0 -1
- microsoft_agents_authentication_msal-1.1.0.dev8/microsoft_agents_authentication_msal.egg-info/requires.txt +0 -3
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/LICENSE +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/MANIFEST.in +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/microsoft_agents/authentication/msal/__init__.py +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/microsoft_agents/authentication/msal/errors/__init__.py +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/microsoft_agents/authentication/msal/errors/error_resources.py +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/microsoft_agents/authentication/msal/msal_auth.py +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/microsoft_agents_authentication_msal.egg-info/SOURCES.txt +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/microsoft_agents_authentication_msal.egg-info/dependency_links.txt +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/microsoft_agents_authentication_msal.egg-info/top_level.txt +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/pyproject.toml +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/readme.md +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/setup.cfg +0 -0
- {microsoft_agents_authentication_msal-1.1.0.dev8 → microsoft_agents_authentication_msal-1.1.0.dev9}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-authentication-msal
|
|
3
|
-
Version: 1.1.0.
|
|
3
|
+
Version: 1.1.0.dev9
|
|
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.1.0.
|
|
18
|
+
Requires-Dist: microsoft-agents-hosting-core==1.1.0.dev9
|
|
19
19
|
Requires-Dist: msal>=1.34.0
|
|
20
20
|
Requires-Dist: requests>=2.32.3
|
|
21
21
|
Dynamic: license-file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.1.0.dev9
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Licensed under the MIT License.
|
|
3
3
|
|
|
4
4
|
import re
|
|
5
|
-
from typing import Dict,
|
|
5
|
+
from typing import Dict, Optional
|
|
6
6
|
from microsoft_agents.hosting.core import (
|
|
7
7
|
AgentAuthConfiguration,
|
|
8
8
|
AccessTokenProviderBase,
|
|
@@ -14,27 +14,27 @@ from .msal_auth import MsalAuth
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class MsalConnectionManager(Connections):
|
|
17
|
-
_connections:
|
|
18
|
-
_connections_map:
|
|
17
|
+
_connections: dict[str, MsalAuth]
|
|
18
|
+
_connections_map: list[dict[str, str]]
|
|
19
19
|
_service_connection_configuration: AgentAuthConfiguration
|
|
20
20
|
|
|
21
21
|
def __init__(
|
|
22
22
|
self,
|
|
23
|
-
connections_configurations: Optional[
|
|
24
|
-
connections_map: Optional[
|
|
23
|
+
connections_configurations: Optional[dict[str, AgentAuthConfiguration]] = None,
|
|
24
|
+
connections_map: Optional[list[dict[str, str]]] = None,
|
|
25
25
|
**kwargs,
|
|
26
26
|
):
|
|
27
27
|
"""
|
|
28
28
|
Initialize the MSAL connection manager.
|
|
29
29
|
|
|
30
30
|
:arg connections_configurations: A dictionary of connection configurations.
|
|
31
|
-
:type connections_configurations:
|
|
31
|
+
:type connections_configurations: dict[str, :class:`microsoft_agents.hosting.core.AgentAuthConfiguration`]
|
|
32
32
|
:arg connections_map: A list of connection mappings.
|
|
33
|
-
:type connections_map:
|
|
33
|
+
:type connections_map: list[dict[str, str]]
|
|
34
34
|
:raises ValueError: If no service connection configuration is provided.
|
|
35
35
|
"""
|
|
36
36
|
|
|
37
|
-
self._connections:
|
|
37
|
+
self._connections: dict[str, MsalAuth] = {}
|
|
38
38
|
self._connections_map = connections_map or kwargs.get("CONNECTIONSMAP", {})
|
|
39
39
|
self._config_map: dict[str, AgentAuthConfiguration] = {}
|
|
40
40
|
|
|
@@ -46,7 +46,7 @@ class MsalConnectionManager(Connections):
|
|
|
46
46
|
self._connections[connection_name] = MsalAuth(agent_auth_config)
|
|
47
47
|
self._config_map[connection_name] = agent_auth_config
|
|
48
48
|
else:
|
|
49
|
-
raw_configurations:
|
|
49
|
+
raw_configurations: dict[str, dict] = kwargs.get("CONNECTIONS", {})
|
|
50
50
|
for connection_name, connection_settings in raw_configurations.items():
|
|
51
51
|
parsed_configuration = AgentAuthConfiguration(
|
|
52
52
|
**connection_settings.get("SETTINGS", {})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-authentication-msal
|
|
3
|
-
Version: 1.1.0.
|
|
3
|
+
Version: 1.1.0.dev9
|
|
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.1.0.
|
|
18
|
+
Requires-Dist: microsoft-agents-hosting-core==1.1.0.dev9
|
|
19
19
|
Requires-Dist: msal>=1.34.0
|
|
20
20
|
Requires-Dist: requests>=2.32.3
|
|
21
21
|
Dynamic: license-file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.1.0.dev8
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|