Skip to content

Add GovFr, GovDe, GovSg to AzureCloudInstance enum#6023

Open
bgavrilMS wants to merge 2 commits into
mainfrom
bogavril/sovereign-cloud-enum-5706
Open

Add GovFr, GovDe, GovSg to AzureCloudInstance enum#6023
bgavrilMS wants to merge 2 commits into
mainfrom
bogavril/sovereign-cloud-enum-5706

Conversation

@bgavrilMS
Copy link
Copy Markdown
Member

Summary

Adds three new sovereign cloud values to the AzureCloudInstance enum, enabling developers to use the familiar WithAuthority(AzureCloudInstance.GovFr, tenantId) pattern instead of manually specifying authority URIs.

Enum Value Cloud Login Endpoint
GovFr French sovereign cloud (Bleu) https://login.sovcloud-identity.fr
GovDe German sovereign cloud (Delos) https://login.sovcloud-identity.de
GovSg Singapore Government cloud https://login.sovcloud-identity.sg

Changes

  • AzureCloud.cs — Added GovFr (5), GovDe (6), GovSg (7) enum values with XML doc comments
  • AuthorityInfo.cs — Updated GetCloudUrl() switch to map new values to their login endpoints
  • All 6 PublicAPI.Unshipped.txt — Registered the new public API surface

Usage

\\csharp
var app = ConfidentialClientApplicationBuilder
.Create(clientId)
.WithAuthority(AzureCloudInstance.GovFr, tenantId)
.WithClientSecret(secret)
.Build();
\\

Fixes #5706

Add sovereign cloud values to AzureCloudInstance for Bleu (France),
Delos (Germany), and GovSG (Singapore). Update AuthorityInfo.GetCloudUrl()
to map the new values to their login endpoints and update all
PublicAPI.Unshipped.txt files.

Fixes #5706

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bgavrilMS bgavrilMS requested a review from a team as a code owner May 21, 2026 23:59
Copilot AI review requested due to automatic review settings May 21, 2026 23:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds three new sovereign cloud options to Microsoft.Identity.Client.AzureCloudInstance so callers can use WithAuthority(AzureCloudInstance.<cloud>, tenantId) instead of manually composing authority URIs.

Changes:

  • Extended AzureCloudInstance with GovFr, GovDe, and GovSg enum values (with XML docs).
  • Updated AuthorityInfo.GetCloudUrl() to map the new enum values to their sovereign login endpoints.
  • Registered the new public API surface in all target framework PublicAPI.Unshipped.txt files.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/client/Microsoft.Identity.Client/AppConfig/AzureCloud.cs Adds new AzureCloudInstance enum values for GovFr/GovDe/GovSg.
src/client/Microsoft.Identity.Client/AppConfig/AuthorityInfo.cs Maps the new enum values to login.sovcloud-identity.{fr,de,sg} in GetCloudUrl().
src/client/Microsoft.Identity.Client/PublicApi/netstandard2.0/PublicAPI.Unshipped.txt Registers new enum members in public API surface (netstandard2.0).
src/client/Microsoft.Identity.Client/PublicApi/net8.0/PublicAPI.Unshipped.txt Registers new enum members in public API surface (net8.0).
src/client/Microsoft.Identity.Client/PublicApi/net8.0-ios/PublicAPI.Unshipped.txt Registers new enum members in public API surface (net8.0-ios).
src/client/Microsoft.Identity.Client/PublicApi/net8.0-android/PublicAPI.Unshipped.txt Registers new enum members in public API surface (net8.0-android).
src/client/Microsoft.Identity.Client/PublicApi/net472/PublicAPI.Unshipped.txt Registers new enum members in public API surface (net472).
src/client/Microsoft.Identity.Client/PublicApi/net462/PublicAPI.Unshipped.txt Registers new enum members in public API surface (net462).

Comment thread src/client/Microsoft.Identity.Client/AppConfig/AuthorityInfo.cs
…ings

Extend TestAuthorityPermutations with DataRow entries for the three new
AzureCloudInstance values to verify GetCloudUrl returns the correct
login.sovcloud-identity.* endpoints.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Documentation] Sovereign cloud usage examples and AzureCloudInstance enum

2 participants