Skip to content

Commit fc8b643

Browse files
msJinLeiisra-fel
andauthored
Fixed the authentication issue when using FederatedToken in non-Azure public Cloud Environment (#23769)
* Fixed the authentication issue when using FederatedToken in non-Azure public Cloud Environment Fix #23742 * Update ChangeLog.md --------- Co-authored-by: Yeming Liu <[email protected]>
1 parent ca9f19a commit fc8b643

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Accounts/Accounts/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Fixed the authentication issue when using `FederatedToken` in Sovereign Clouds. [#23742]
23+
* Adjusted output format to be more user-friendly for `Get-AzContext/Tenant/Subscription` and `Invoke-AzRestMethod`.
2224
* Upgraded Azure.Identity to 1.10.3 [#23018].
2325
- Renamed token cache from `msal.cache` to `msal.cache.cae` or `masl.cache.nocae`.
2426
* Enable Continue Access Evalution (CAE) for Service Principal and Federated Token login method.
25-
* Adjusted output format to be more user-friendly for `Get-AzContext/Tenant/Subscription` and `Invoke-AzRestMethod`
2627
* Added upcoming breaking change warning for deprecation of config parameter `DisableErrorRecordsPersistence`.
2728

2829
## Version 2.13.2

src/Accounts/Authenticators/ClientAssertionAuthenticator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public override Task<IAccessToken> Authenticate(AuthenticationParameters paramet
4242

4343
var options = new ClientAssertionCredentialOptions()
4444
{
45+
AuthorityHost = new Uri(authority),
4546
TokenCachePersistenceOptions = spParameters.TokenCacheProvider.GetTokenCachePersistenceOptions()
4647
};
4748
options.Diagnostics.IsTelemetryEnabled = false; // disable telemetry to avoid error thrown from Azure.Core that AssemblyInformationalVersion is null

0 commit comments

Comments
 (0)