mcp-sharepoint-us 2.0.5__tar.gz → 2.0.6__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.
Potentially problematic release.
This version of mcp-sharepoint-us might be problematic. Click here for more details.
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/PKG-INFO +1 -1
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/pyproject.toml +1 -1
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint/auth.py +16 -6
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/PKG-INFO +1 -1
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/LICENSE +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/README.md +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/setup.cfg +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint/__init__.py +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint/__main__.py +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/SOURCES.txt +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/dependency_links.txt +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/entry_points.txt +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/requires.txt +0 -0
- {mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/top_level.txt +0 -0
|
@@ -69,12 +69,22 @@ class SharePointAuthenticator:
|
|
|
69
69
|
# Optional: enable MSAL token cache (in-memory). Helps reduce calls.
|
|
70
70
|
self._token_cache = getattr(self, "_token_cache", msal.SerializableTokenCache())
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
# For government cloud, disable instance discovery to prevent
|
|
73
|
+
# MSAL from trying to connect to commercial cloud endpoints
|
|
74
|
+
msal_params = {
|
|
75
|
+
"authority": authority_url,
|
|
76
|
+
"client_id": self.client_id,
|
|
77
|
+
"client_credential": self.client_secret,
|
|
78
|
+
"token_cache": self._token_cache,
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
# Disable instance discovery for sovereign clouds to avoid
|
|
82
|
+
# hitting login.microsoftonline.com endpoints
|
|
83
|
+
if self.cloud in ("government", "us"):
|
|
84
|
+
msal_params["validate_authority"] = False
|
|
85
|
+
logger.info("Disabled authority validation for government cloud")
|
|
86
|
+
|
|
87
|
+
self._msal_app = msal.ConfidentialClientApplication(**msal_params)
|
|
78
88
|
self._authority_url = authority_url
|
|
79
89
|
|
|
80
90
|
# Small in-memory access-token cache (avoid repeated acquire calls)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/requires.txt
RENAMED
|
File without changes
|
{mcp_sharepoint_us-2.0.5 → mcp_sharepoint_us-2.0.6}/src/mcp_sharepoint_us.egg-info/top_level.txt
RENAMED
|
File without changes
|