Skip to content

Commit 0c69820

Browse files
authored
Merge pull request #9454 from cormacpayne/fix-endpoint
Fix bug where incorrect endpoint was being used in some cases for data plane calls
2 parents be6d7f1 + cf4f1fb commit 0c69820

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Accounts/Accounts/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fix bug where incorrect endpoint was being used in some cases for data plane cmdlets in Windows PowerShell
2122

2223
## Version 1.5.3
2324
* Fix bug with incorrect URL being used in some cases for Functions calls

src/Accounts/Authenticators/InteractiveUserAuthenticator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public async override Task<IAccessToken> Authenticate(IAzureAccount account, IAz
3030
{
3131
var auth = new AuthenticationContext(AuthenticationHelpers.GetAuthority(environment, tenant), environment?.OnPremise ?? true, tokenCache as TokenCache ?? TokenCache.DefaultShared);
3232
var response = await auth.AcquireTokenAsync(
33-
environment.ActiveDirectoryServiceEndpointResourceId,
33+
environment.GetEndpoint(resourceId),
3434
AuthenticationHelpers.PowerShellClientId,
3535
new Uri(AuthenticationHelpers.PowerShellRedirectUri),
3636
new PlatformParameters(AuthenticationHelpers.GetPromptBehavior(promptBehavior), new ConsoleParentWindow()),

0 commit comments

Comments
 (0)