microsoft-agents-authentication-msal 0.5.0.dev5__tar.gz → 0.5.0.dev10__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 (16) hide show
  1. microsoft_agents_authentication_msal-0.5.0.dev10/PKG-INFO +134 -0
  2. microsoft_agents_authentication_msal-0.5.0.dev10/microsoft_agents_authentication_msal.egg-info/PKG-INFO +134 -0
  3. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/microsoft_agents_authentication_msal.egg-info/SOURCES.txt +1 -0
  4. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/microsoft_agents_authentication_msal.egg-info/requires.txt +1 -1
  5. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/pyproject.toml +1 -0
  6. microsoft_agents_authentication_msal-0.5.0.dev10/readme.md +115 -0
  7. microsoft_agents_authentication_msal-0.5.0.dev5/PKG-INFO +0 -17
  8. microsoft_agents_authentication_msal-0.5.0.dev5/microsoft_agents_authentication_msal.egg-info/PKG-INFO +0 -17
  9. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/LICENSE +0 -0
  10. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/microsoft_agents/authentication/msal/__init__.py +0 -0
  11. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/microsoft_agents/authentication/msal/msal_auth.py +0 -0
  12. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/microsoft_agents/authentication/msal/msal_connection_manager.py +0 -0
  13. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/microsoft_agents_authentication_msal.egg-info/dependency_links.txt +0 -0
  14. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/microsoft_agents_authentication_msal.egg-info/top_level.txt +0 -0
  15. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/setup.cfg +0 -0
  16. {microsoft_agents_authentication_msal-0.5.0.dev5 → microsoft_agents_authentication_msal-0.5.0.dev10}/setup.py +0 -0
@@ -0,0 +1,134 @@
1
+ Metadata-Version: 2.4
2
+ Name: microsoft-agents-authentication-msal
3
+ Version: 0.5.0.dev10
4
+ Summary: A msal-based authentication library for Microsoft Agents
5
+ Author: Microsoft Corporation
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/microsoft/Agents
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev10
14
+ Requires-Dist: msal>=1.31.1
15
+ Requires-Dist: requests>=2.32.3
16
+ Requires-Dist: cryptography>=44.0.0
17
+ Dynamic: license-file
18
+ Dynamic: requires-dist
19
+
20
+ # Microsoft Agents MSAL Authentication
21
+
22
+ [![PyPI version](https://img.shields.io/pypi/v/microsoft-agents-authentication-msal)](https://pypi.org/project/microsoft-agents-authentication-msal/)
23
+
24
+ Provides secure authentication for your agents using Microsoft Authentication Library (MSAL). It handles getting tokens from Azure AD so your agent can securely communicate with Microsoft services like Teams, Graph API, and other Azure resources.
25
+
26
+ # What is this?
27
+
28
+ This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehensive framework for building enterprise-grade conversational AI agents. The SDK enables developers to create intelligent agents that work across multiple platforms including Microsoft Teams, M365 Copilot, Copilot Studio, and web chat, with support for third-party integrations like Slack, Facebook Messenger, and Twilio.
29
+
30
+ ## Packages Overview
31
+
32
+ We offer the following PyPI packages to create conversational experiences based on Agents:
33
+
34
+ | Package Name | PyPI Version | Description |
35
+ |--------------|-------------|-------------|
36
+ | `microsoft-agents-activity` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-activity)](https://pypi.org/project/microsoft-agents-activity/) | Types and validators implementing the Activity protocol spec. |
37
+ | `microsoft-agents-hosting-core` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-core)](https://pypi.org/project/microsoft-agents-hosting-core/) | Core library for Microsoft Agents hosting. |
38
+ | `microsoft-agents-hosting-aiohttp` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-aiohttp)](https://pypi.org/project/microsoft-agents-hosting-aiohttp/) | Configures aiohttp to run the Agent. |
39
+ | `microsoft-agents-hosting-teams` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-teams)](https://pypi.org/project/microsoft-agents-hosting-teams/) | Provides classes to host an Agent for Teams. |
40
+ | `microsoft-agents-storage-blob` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-blob)](https://pypi.org/project/microsoft-agents-storage-blob/) | Extension to use Azure Blob as storage. |
41
+ | `microsoft-agents-storage-cosmos` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-cosmos)](https://pypi.org/project/microsoft-agents-storage-cosmos/) | Extension to use CosmosDB as storage. |
42
+ | `microsoft-agents-authentication-msal` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-authentication-msal)](https://pypi.org/project/microsoft-agents-authentication-msal/) | MSAL-based authentication for Microsoft Agents. |
43
+
44
+ Additionally we provide a Copilot Studio Client, to interact with Agents created in CopilotStudio:
45
+
46
+ | Package Name | PyPI Version | Description |
47
+ |--------------|-------------|-------------|
48
+ | `microsoft-agents-copilotstudio-client` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-copilotstudio-client)](https://pypi.org/project/microsoft-agents-copilotstudio-client/) | Direct to Engine client to interact with Agents created in CopilotStudio |
49
+
50
+ ## Installation
51
+
52
+ ```bash
53
+ pip install microsoft-agents-authentication-msal
54
+ ```
55
+
56
+ ## Quick Start
57
+
58
+ ### Basic Setup with Client Secret
59
+
60
+ Define your client secrets in the ENV file
61
+ ```python
62
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__CLIENTID=client-id
63
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__CLIENTSECRET=client-secret
64
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__TENANTID=tenant-id
65
+ ```
66
+
67
+ Load the Configuration (Code from [main.py Quickstart Sample](https://github.com/microsoft/Agents/blob/main/samples/python/quickstart/src/main.py))
68
+
69
+ ```python
70
+ from .start_server import start_server
71
+
72
+ start_server(
73
+ agent_application=AGENT_APP,
74
+ auth_configuration=CONNECTION_MANAGER.get_default_connection_configuration(),
75
+ )
76
+ ```
77
+ Then start the Agent (code snipped from (start_server.py Quickstart Sample](https://github.com/microsoft/Agents/blob/main/samples/python/quickstart/src/start_server.py)):
78
+
79
+ ```python
80
+ def start_server(
81
+ agent_application: AgentApplication, auth_configuration: AgentAuthConfiguration
82
+ ):
83
+ async def entry_point(req: Request) -> Response:
84
+ agent: AgentApplication = req.app["agent_app"]
85
+ adapter: CloudAdapter = req.app["adapter"]
86
+ return await start_agent_process(
87
+ req,
88
+ agent,
89
+ adapter,
90
+ )
91
+ [...]
92
+ ```
93
+
94
+ ## Authentication Types
95
+ The M365 Agents SDK in Python supports the following Auth types:
96
+ ```python
97
+ class AuthTypes(str, Enum):
98
+ certificate = "certificate"
99
+ certificate_subject_name = "CertificateSubjectName"
100
+ client_secret = "ClientSecret"
101
+ user_managed_identity = "UserManagedIdentity"
102
+ system_managed_identity = "SystemManagedIdentity"
103
+ ```
104
+
105
+ ## Key Classes
106
+
107
+ - **`MsalAuth`** - Core authentication provider using MSAL
108
+ - **`MsalConnectionManager`** - Manages multiple authentication connections
109
+
110
+ ## Features
111
+
112
+ ✅ **Multiple auth types** - Client secret, certificate, managed identity
113
+ ✅ **Token caching** - Automatic token refresh and caching
114
+ ✅ **Multi-tenant** - Support for different Azure AD tenants
115
+ ✅ **Agent-to-agent** - Secure communication between agents
116
+ ✅ **On-behalf-of** - Act on behalf of users
117
+
118
+ # Security Best Practices
119
+
120
+ - Store secrets in Azure Key Vault or environment variables
121
+ - Use managed identities when possible (no secrets to manage)
122
+ - Regularly rotate client secrets and certificates
123
+ - Use least-privilege principle for scopes and permissions
124
+
125
+ # Quick Links
126
+
127
+ - 📦 [All SDK Packages on PyPI](https://pypi.org/search/?q=microsoft-agents)
128
+ - 📖 [Complete Documentation](https://aka.ms/agents)
129
+ - 💡 [Python Samples Repository](https://github.com/microsoft/Agents/tree/main/samples/python)
130
+ - 🐛 [Report Issues](https://github.com/microsoft/Agents-for-python/issues)
131
+
132
+ # Sample Applications
133
+
134
+ w
@@ -0,0 +1,134 @@
1
+ Metadata-Version: 2.4
2
+ Name: microsoft-agents-authentication-msal
3
+ Version: 0.5.0.dev10
4
+ Summary: A msal-based authentication library for Microsoft Agents
5
+ Author: Microsoft Corporation
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/microsoft/Agents
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev10
14
+ Requires-Dist: msal>=1.31.1
15
+ Requires-Dist: requests>=2.32.3
16
+ Requires-Dist: cryptography>=44.0.0
17
+ Dynamic: license-file
18
+ Dynamic: requires-dist
19
+
20
+ # Microsoft Agents MSAL Authentication
21
+
22
+ [![PyPI version](https://img.shields.io/pypi/v/microsoft-agents-authentication-msal)](https://pypi.org/project/microsoft-agents-authentication-msal/)
23
+
24
+ Provides secure authentication for your agents using Microsoft Authentication Library (MSAL). It handles getting tokens from Azure AD so your agent can securely communicate with Microsoft services like Teams, Graph API, and other Azure resources.
25
+
26
+ # What is this?
27
+
28
+ This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehensive framework for building enterprise-grade conversational AI agents. The SDK enables developers to create intelligent agents that work across multiple platforms including Microsoft Teams, M365 Copilot, Copilot Studio, and web chat, with support for third-party integrations like Slack, Facebook Messenger, and Twilio.
29
+
30
+ ## Packages Overview
31
+
32
+ We offer the following PyPI packages to create conversational experiences based on Agents:
33
+
34
+ | Package Name | PyPI Version | Description |
35
+ |--------------|-------------|-------------|
36
+ | `microsoft-agents-activity` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-activity)](https://pypi.org/project/microsoft-agents-activity/) | Types and validators implementing the Activity protocol spec. |
37
+ | `microsoft-agents-hosting-core` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-core)](https://pypi.org/project/microsoft-agents-hosting-core/) | Core library for Microsoft Agents hosting. |
38
+ | `microsoft-agents-hosting-aiohttp` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-aiohttp)](https://pypi.org/project/microsoft-agents-hosting-aiohttp/) | Configures aiohttp to run the Agent. |
39
+ | `microsoft-agents-hosting-teams` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-teams)](https://pypi.org/project/microsoft-agents-hosting-teams/) | Provides classes to host an Agent for Teams. |
40
+ | `microsoft-agents-storage-blob` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-blob)](https://pypi.org/project/microsoft-agents-storage-blob/) | Extension to use Azure Blob as storage. |
41
+ | `microsoft-agents-storage-cosmos` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-cosmos)](https://pypi.org/project/microsoft-agents-storage-cosmos/) | Extension to use CosmosDB as storage. |
42
+ | `microsoft-agents-authentication-msal` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-authentication-msal)](https://pypi.org/project/microsoft-agents-authentication-msal/) | MSAL-based authentication for Microsoft Agents. |
43
+
44
+ Additionally we provide a Copilot Studio Client, to interact with Agents created in CopilotStudio:
45
+
46
+ | Package Name | PyPI Version | Description |
47
+ |--------------|-------------|-------------|
48
+ | `microsoft-agents-copilotstudio-client` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-copilotstudio-client)](https://pypi.org/project/microsoft-agents-copilotstudio-client/) | Direct to Engine client to interact with Agents created in CopilotStudio |
49
+
50
+ ## Installation
51
+
52
+ ```bash
53
+ pip install microsoft-agents-authentication-msal
54
+ ```
55
+
56
+ ## Quick Start
57
+
58
+ ### Basic Setup with Client Secret
59
+
60
+ Define your client secrets in the ENV file
61
+ ```python
62
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__CLIENTID=client-id
63
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__CLIENTSECRET=client-secret
64
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__TENANTID=tenant-id
65
+ ```
66
+
67
+ Load the Configuration (Code from [main.py Quickstart Sample](https://github.com/microsoft/Agents/blob/main/samples/python/quickstart/src/main.py))
68
+
69
+ ```python
70
+ from .start_server import start_server
71
+
72
+ start_server(
73
+ agent_application=AGENT_APP,
74
+ auth_configuration=CONNECTION_MANAGER.get_default_connection_configuration(),
75
+ )
76
+ ```
77
+ Then start the Agent (code snipped from (start_server.py Quickstart Sample](https://github.com/microsoft/Agents/blob/main/samples/python/quickstart/src/start_server.py)):
78
+
79
+ ```python
80
+ def start_server(
81
+ agent_application: AgentApplication, auth_configuration: AgentAuthConfiguration
82
+ ):
83
+ async def entry_point(req: Request) -> Response:
84
+ agent: AgentApplication = req.app["agent_app"]
85
+ adapter: CloudAdapter = req.app["adapter"]
86
+ return await start_agent_process(
87
+ req,
88
+ agent,
89
+ adapter,
90
+ )
91
+ [...]
92
+ ```
93
+
94
+ ## Authentication Types
95
+ The M365 Agents SDK in Python supports the following Auth types:
96
+ ```python
97
+ class AuthTypes(str, Enum):
98
+ certificate = "certificate"
99
+ certificate_subject_name = "CertificateSubjectName"
100
+ client_secret = "ClientSecret"
101
+ user_managed_identity = "UserManagedIdentity"
102
+ system_managed_identity = "SystemManagedIdentity"
103
+ ```
104
+
105
+ ## Key Classes
106
+
107
+ - **`MsalAuth`** - Core authentication provider using MSAL
108
+ - **`MsalConnectionManager`** - Manages multiple authentication connections
109
+
110
+ ## Features
111
+
112
+ ✅ **Multiple auth types** - Client secret, certificate, managed identity
113
+ ✅ **Token caching** - Automatic token refresh and caching
114
+ ✅ **Multi-tenant** - Support for different Azure AD tenants
115
+ ✅ **Agent-to-agent** - Secure communication between agents
116
+ ✅ **On-behalf-of** - Act on behalf of users
117
+
118
+ # Security Best Practices
119
+
120
+ - Store secrets in Azure Key Vault or environment variables
121
+ - Use managed identities when possible (no secrets to manage)
122
+ - Regularly rotate client secrets and certificates
123
+ - Use least-privilege principle for scopes and permissions
124
+
125
+ # Quick Links
126
+
127
+ - 📦 [All SDK Packages on PyPI](https://pypi.org/search/?q=microsoft-agents)
128
+ - 📖 [Complete Documentation](https://aka.ms/agents)
129
+ - 💡 [Python Samples Repository](https://github.com/microsoft/Agents/tree/main/samples/python)
130
+ - 🐛 [Report Issues](https://github.com/microsoft/Agents-for-python/issues)
131
+
132
+ # Sample Applications
133
+
134
+ w
@@ -1,5 +1,6 @@
1
1
  LICENSE
2
2
  pyproject.toml
3
+ readme.md
3
4
  setup.py
4
5
  microsoft_agents/authentication/msal/__init__.py
5
6
  microsoft_agents/authentication/msal/msal_auth.py
@@ -1,4 +1,4 @@
1
- microsoft-agents-hosting-core==0.5.0.dev5
1
+ microsoft-agents-hosting-core==0.5.0.dev10
2
2
  msal>=1.31.1
3
3
  requests>=2.32.3
4
4
  cryptography>=44.0.0
@@ -6,6 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
  name = "microsoft-agents-authentication-msal"
7
7
  dynamic = ["version", "dependencies"]
8
8
  description = "A msal-based authentication library for Microsoft Agents"
9
+ readme = {file = "readme.md", content-type = "text/markdown"}
9
10
  authors = [{name = "Microsoft Corporation"}]
10
11
  license = "MIT"
11
12
  license-files = ["LICENSE"]
@@ -0,0 +1,115 @@
1
+ # Microsoft Agents MSAL Authentication
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/microsoft-agents-authentication-msal)](https://pypi.org/project/microsoft-agents-authentication-msal/)
4
+
5
+ Provides secure authentication for your agents using Microsoft Authentication Library (MSAL). It handles getting tokens from Azure AD so your agent can securely communicate with Microsoft services like Teams, Graph API, and other Azure resources.
6
+
7
+ # What is this?
8
+
9
+ This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehensive framework for building enterprise-grade conversational AI agents. The SDK enables developers to create intelligent agents that work across multiple platforms including Microsoft Teams, M365 Copilot, Copilot Studio, and web chat, with support for third-party integrations like Slack, Facebook Messenger, and Twilio.
10
+
11
+ ## Packages Overview
12
+
13
+ We offer the following PyPI packages to create conversational experiences based on Agents:
14
+
15
+ | Package Name | PyPI Version | Description |
16
+ |--------------|-------------|-------------|
17
+ | `microsoft-agents-activity` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-activity)](https://pypi.org/project/microsoft-agents-activity/) | Types and validators implementing the Activity protocol spec. |
18
+ | `microsoft-agents-hosting-core` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-core)](https://pypi.org/project/microsoft-agents-hosting-core/) | Core library for Microsoft Agents hosting. |
19
+ | `microsoft-agents-hosting-aiohttp` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-aiohttp)](https://pypi.org/project/microsoft-agents-hosting-aiohttp/) | Configures aiohttp to run the Agent. |
20
+ | `microsoft-agents-hosting-teams` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-teams)](https://pypi.org/project/microsoft-agents-hosting-teams/) | Provides classes to host an Agent for Teams. |
21
+ | `microsoft-agents-storage-blob` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-blob)](https://pypi.org/project/microsoft-agents-storage-blob/) | Extension to use Azure Blob as storage. |
22
+ | `microsoft-agents-storage-cosmos` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-cosmos)](https://pypi.org/project/microsoft-agents-storage-cosmos/) | Extension to use CosmosDB as storage. |
23
+ | `microsoft-agents-authentication-msal` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-authentication-msal)](https://pypi.org/project/microsoft-agents-authentication-msal/) | MSAL-based authentication for Microsoft Agents. |
24
+
25
+ Additionally we provide a Copilot Studio Client, to interact with Agents created in CopilotStudio:
26
+
27
+ | Package Name | PyPI Version | Description |
28
+ |--------------|-------------|-------------|
29
+ | `microsoft-agents-copilotstudio-client` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-copilotstudio-client)](https://pypi.org/project/microsoft-agents-copilotstudio-client/) | Direct to Engine client to interact with Agents created in CopilotStudio |
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ pip install microsoft-agents-authentication-msal
35
+ ```
36
+
37
+ ## Quick Start
38
+
39
+ ### Basic Setup with Client Secret
40
+
41
+ Define your client secrets in the ENV file
42
+ ```python
43
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__CLIENTID=client-id
44
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__CLIENTSECRET=client-secret
45
+ CONNECTIONS__SERVICE_CONNECTION__SETTINGS__TENANTID=tenant-id
46
+ ```
47
+
48
+ Load the Configuration (Code from [main.py Quickstart Sample](https://github.com/microsoft/Agents/blob/main/samples/python/quickstart/src/main.py))
49
+
50
+ ```python
51
+ from .start_server import start_server
52
+
53
+ start_server(
54
+ agent_application=AGENT_APP,
55
+ auth_configuration=CONNECTION_MANAGER.get_default_connection_configuration(),
56
+ )
57
+ ```
58
+ Then start the Agent (code snipped from (start_server.py Quickstart Sample](https://github.com/microsoft/Agents/blob/main/samples/python/quickstart/src/start_server.py)):
59
+
60
+ ```python
61
+ def start_server(
62
+ agent_application: AgentApplication, auth_configuration: AgentAuthConfiguration
63
+ ):
64
+ async def entry_point(req: Request) -> Response:
65
+ agent: AgentApplication = req.app["agent_app"]
66
+ adapter: CloudAdapter = req.app["adapter"]
67
+ return await start_agent_process(
68
+ req,
69
+ agent,
70
+ adapter,
71
+ )
72
+ [...]
73
+ ```
74
+
75
+ ## Authentication Types
76
+ The M365 Agents SDK in Python supports the following Auth types:
77
+ ```python
78
+ class AuthTypes(str, Enum):
79
+ certificate = "certificate"
80
+ certificate_subject_name = "CertificateSubjectName"
81
+ client_secret = "ClientSecret"
82
+ user_managed_identity = "UserManagedIdentity"
83
+ system_managed_identity = "SystemManagedIdentity"
84
+ ```
85
+
86
+ ## Key Classes
87
+
88
+ - **`MsalAuth`** - Core authentication provider using MSAL
89
+ - **`MsalConnectionManager`** - Manages multiple authentication connections
90
+
91
+ ## Features
92
+
93
+ ✅ **Multiple auth types** - Client secret, certificate, managed identity
94
+ ✅ **Token caching** - Automatic token refresh and caching
95
+ ✅ **Multi-tenant** - Support for different Azure AD tenants
96
+ ✅ **Agent-to-agent** - Secure communication between agents
97
+ ✅ **On-behalf-of** - Act on behalf of users
98
+
99
+ # Security Best Practices
100
+
101
+ - Store secrets in Azure Key Vault or environment variables
102
+ - Use managed identities when possible (no secrets to manage)
103
+ - Regularly rotate client secrets and certificates
104
+ - Use least-privilege principle for scopes and permissions
105
+
106
+ # Quick Links
107
+
108
+ - 📦 [All SDK Packages on PyPI](https://pypi.org/search/?q=microsoft-agents)
109
+ - 📖 [Complete Documentation](https://aka.ms/agents)
110
+ - 💡 [Python Samples Repository](https://github.com/microsoft/Agents/tree/main/samples/python)
111
+ - 🐛 [Report Issues](https://github.com/microsoft/Agents-for-python/issues)
112
+
113
+ # Sample Applications
114
+
115
+ w
@@ -1,17 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: microsoft-agents-authentication-msal
3
- Version: 0.5.0.dev5
4
- Summary: A msal-based authentication library for Microsoft Agents
5
- Author: Microsoft Corporation
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/microsoft/Agents
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.9
11
- License-File: LICENSE
12
- Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev5
13
- Requires-Dist: msal>=1.31.1
14
- Requires-Dist: requests>=2.32.3
15
- Requires-Dist: cryptography>=44.0.0
16
- Dynamic: license-file
17
- Dynamic: requires-dist
@@ -1,17 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: microsoft-agents-authentication-msal
3
- Version: 0.5.0.dev5
4
- Summary: A msal-based authentication library for Microsoft Agents
5
- Author: Microsoft Corporation
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/microsoft/Agents
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.9
11
- License-File: LICENSE
12
- Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev5
13
- Requires-Dist: msal>=1.31.1
14
- Requires-Dist: requests>=2.32.3
15
- Requires-Dist: cryptography>=44.0.0
16
- Dynamic: license-file
17
- Dynamic: requires-dist