Skip to content

[Feature Request] Improve sovereign cloud support for the new clouds (fr, de, sg) #871

Closed

Description

MSAL client type

Confidential, Public

Problem statement

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

  1. Authority: "login.microsoftonline.com/tid". Instance discovery expected on: login.microsoftonline.com
  2. Authority: "login.microsoft.com/tid". Instance discovery expected on: login.microsoftonline.com
  3. Authority: "login.partner.microsoftonline.cn/tid". Instance discovery expected on: login.partner.microsoftonline.cn
  4. Authority: any of the list above. Instance discovery not expected on login.microsoftonline.com
  5. Authority not on the list above. Instance discovery expected on login.microsoftonline.com

Original issue:

AzureAD/microsoft-authentication-library-for-dotnet#5630

Activity

  1. alexkm-bleucloud commented on Feb 25, 2026

    @alexkm-bleucloud

    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 ;

    1. [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

    2. 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

    Thanks !

  2. bgavrilMS commented on Mar 31, 2026

    @bgavrilMS
    MemberAuthor

    Fixed in 1.35.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions