Add GovFr, GovDe, GovSg to AzureCloudInstance enum#6023
Conversation
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>
There was a problem hiding this comment.
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
AzureCloudInstancewithGovFr,GovDe, andGovSgenum 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.txtfiles.
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). |
…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>
|
@copilot resolve the merge conflicts in this pull request |
…ublicAPI.Unshipped.txt conflicts
Merge conflicts resolved in commit |
|
@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
Merge conflicts resolved in commit |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Adds three new sovereign cloud values to the
AzureCloudInstanceenum, enabling developers to use the familiarWithAuthority(AzureCloudInstance.GovFr, tenantId)pattern instead of manually specifying authority URIs.GovFrhttps://login.sovcloud-identity.frGovDehttps://login.sovcloud-identity.deGovSghttps://login.sovcloud-identity.sgChanges proposed in this request
AzureCloud.cs— AddedGovFr(5),GovDe(6),GovSg(7) enum values with XML doc commentsAuthorityInfo.cs— UpdatedGetCloudUrl()switch to map new values to their login endpointsPublicAPI.Unshipped.txt— Registered the new public API surface; contains only the newGovFr/GovDe/GovSgenum entries (all prior entries were moved toPublicAPI.Shipped.txtin the 4.84.2 release onmain)Testing
Unit tests added in
PublicClientApplicationBuilderTests.csvalidating that the expected authority URL is produced for each new enum value (GovFr,GovDe,GovSg), coveringcommonandorganizationsaudiences consistent with existing cloud tests.Performance impact
No performance impact.
Documentation