Skip to content

Commit 4a669de

Browse files
authored
[Identity] InteractiveBrowserCredential - Fix Azure Stack support (Azure#13511)
* [Identity] InteractiveBrowserCredential - Fix Azure Stack support Fixes Azure#11220 This PR ensures InteractiveBrowserCredential works for Azure Stack. This PR is compatible with the other InteractiveBrowserCredential PR: Azure#13263 * changelog entry
1 parent e8f026b commit 4a669de

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sdk/identity/identity/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 1.2.3 (Unreleased)
44

5+
- Fixed Azure Stack support for the NodeJS version of the `InteractiveBrowserCredential`.
56

67
## 1.2.2 (2021-01-12)
78

sdk/identity/identity/src/credentials/interactiveBrowserCredential.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ export class InteractiveBrowserCredential implements TokenCredential {
6565
}
6666

6767
this.msalClient = new MsalClient(
68-
{ clientId, authority: authorityHost },
68+
{
69+
clientId,
70+
authority: authorityHost,
71+
knownAuthorities: tenantId === "adfs" ? (authorityHost ? [authorityHost] : []) : []
72+
},
6973
false,
7074
undefined,
7175
options

0 commit comments

Comments
 (0)