You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Improve sovereign cloud support for the new clouds (fr, de, sg) #871
MSAL must keep all HTTP requests in the same cloud for the publicly known clouds. However, today MSAL will perform instance discovery, which in some cases goes to the global cloud, i.e. login.microsoftonline.com
The proposed solution is for MSAL to keep a list of known clouds. If the authority host matches a known host, then instance discovery should occur on that host.
Below is list of known cloud hosts. This is partially available here
"Public"
"login.microsoftonline.com" <-- use this for instance discovery
"login.windows.net",
"login.microsoft.com",
"sts.windows.net"
"PPE"
"login.windows-ppe.net",
"Fairfax",
"login.microsoftonline.us",
"Mooncake",
"login.partner.microsoftonline.cn" <-- use this for instance discovery
"login.chinacloudapi.cn"
"Bleu",
"login.sovcloud-identity.fr",
"Delos",
"login.sovcloud-identity.de",
"GovSG",
"login.sovcloud-identity.sg",
Notes:
MSAL.NET already does for most clouds, it just needs to be updated for Bleu, Delos and GovSG - see https://github.com/AzureAD/microsoft-authentication-library-for-
dotnet/blob/main/src/client/Microsoft.Identity.Client/Instance/Discovery/KnownMetadataProvider.cs#L47
Instance discovery should continue to be performed for discovery of aliases
Acceptance tests
Authority: "login.microsoftonline.com/tid". Instance discovery expected on: login.microsoftonline.com
Authority: "login.microsoft.com/tid". Instance discovery expected on: login.microsoftonline.com
Authority: "login.partner.microsoftonline.cn/tid". Instance discovery expected on: login.partner.microsoftonline.cn
Authority: any of the list above. Instance discovery not expected on login.microsoftonline.com
Authority not on the list above. Instance discovery expected on login.microsoftonline.com
Hi Bogdan Gavril (@bgavrilMS), solution engineer working for Bleu here. Thank you for submitting this issue, and for the PR you submitted accordingly :) I am very interested in this PR and I'd like to make a couple of points ;
[Edit] deleted my original comment which was irrelevant ; I see all checks have passed for that PR so checking discovery for each Sov Cloud doesn't seem to be an issue
This is me nitpicking but the denomination of well-known authority hosts constants might be confusing, at least for Bleu and Delos. Given these clouds do not belong to MS and are not strictly limited to Government activity, maybe this would be more accurate :
replace AZURE_GOV_FR -> SOVCLOUD_BLEU
replace AZURE_GOV_DE -> SOVCLOUD_DELOS
Requesting the opinion of Delos and SG Gov engineers here as well. Happy to contribute further if needed
Activity
alexkm-bleucloud commentedon Feb 25, 2026
Hi Bogdan Gavril (@bgavrilMS), solution engineer working for Bleu here. Thank you for submitting this issue, and for the PR you submitted accordingly :) I am very interested in this PR and I'd like to make a couple of points ;
[Edit] deleted my original comment which was irrelevant ; I see all checks have passed for that PR so checking discovery for each Sov Cloud doesn't seem to be an issue
This is me nitpicking but the denomination of well-known authority hosts constants might be confusing, at least for Bleu and Delos. Given these clouds do not belong to MS and are not strictly limited to Government activity, maybe this would be more accurate :
Requesting the opinion of Delos and SG Gov engineers here as well. Happy to contribute further if needed
Thanks !
bgavrilMS commentedon Mar 31, 2026
Fixed in 1.35.1