Skip to content

Add GovFr, GovDe, GovSg to AzureCloudInstance enum#6023

Merged
gladjohn merged 7 commits into
mainfrom
bogavril/sovereign-cloud-enum-5706
Jun 10, 2026
Merged

Add GovFr, GovDe, GovSg to AzureCloudInstance enum#6023
gladjohn merged 7 commits into
mainfrom
bogavril/sovereign-cloud-enum-5706

Conversation

@bgavrilMS

@bgavrilMS bgavrilMS commented May 21, 2026

Copy link
Copy Markdown
Member

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 proposed in this request

  • 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; contains only the new GovFr/GovDe/GovSg enum entries (all prior entries were moved to PublicAPI.Shipped.txt in the 4.84.2 release on main)

Testing

Unit tests added in PublicClientApplicationBuilderTests.cs validating that the expected authority URL is produced for each new enum value (GovFr, GovDe, GovSg), covering common and organizations audiences consistent with existing cloud tests.

Performance impact

No performance impact.

Documentation

  • All relevant documentation is updated.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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>
@bgavrilMS

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

Copilot AI review requested due to automatic review settings June 4, 2026 15:57
@bgavrilMS bgavrilMS removed the request for review from Copilot June 4, 2026 15:57

Copilot AI commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merge conflicts resolved in commit afc9f5f. All 6 PublicAPI.Unshipped.txt files now include both the WithReservedScopes entry from main and the GovFr/GovDe/GovSg enum entries from this branch.

Copilot AI review requested due to automatic review settings June 4, 2026 19:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

@bgavrilMS

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

…oud-enum-5706

# Conflicts:
#	src/client/Microsoft.Identity.Client/PublicApi/net462/PublicAPI.Unshipped.txt
#	src/client/Microsoft.Identity.Client/PublicApi/net472/PublicAPI.Unshipped.txt
#	src/client/Microsoft.Identity.Client/PublicApi/net8.0-android/PublicAPI.Unshipped.txt
#	src/client/Microsoft.Identity.Client/PublicApi/net8.0-ios/PublicAPI.Unshipped.txt
#	src/client/Microsoft.Identity.Client/PublicApi/net8.0/PublicAPI.Unshipped.txt
#	src/client/Microsoft.Identity.Client/PublicApi/netstandard2.0/PublicAPI.Unshipped.txt

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merge conflicts resolved in commit 6ee8cc6. The main branch had moved all previously unshipped entries into PublicAPI.Shipped.txt as part of the 4.84.2 post-release steps, so all 6 PublicAPI.Unshipped.txt files now contain only the new GovFr/GovDe/GovSg enum entries from this branch.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 20:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.

This was referenced Jun 20, 2026
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.

6 participants