Skip to content

Commit 4117a0a

Browse files
msJinLeiisra-fel
andauthored
Fixed the authentication issue when using FederatedToken in non-Azure public Cloud Environment (#23769) (#23829)
* 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 555f1a9 commit 4117a0a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Accounts/Accounts/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Fixed the authentication issue when using `FederatedToken` in Sovereign Clouds. [#23742]
2223
* Added upcoming breaking change warning for deprecation of config parameter `DisableErrorRecordsPersistence`.
2324

2425
## 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)