Skip to content

Commit 4f098ab

Browse files
isra-felYeming Liu (from Dev Box)
andauthored
Enable support for Microsoft Account by WAM (#22631)
Co-authored-by: Yeming Liu (from Dev Box) <[email protected]>
1 parent 4f597c6 commit 4f098ab

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/Accounts/Accounts/ChangeLog.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
## Upcoming Release
2222
* Upgraded Azure.Identity to 1.10.3 [#23018].
2323
- Renamed token cache from `msal.cache` to `msal.cache.cae` or `masl.cache.nocae`.
24-
* Enabled Continue Access Evalution (CAE) for all Service Principals login methods.
25-
* Adjusted output format to be more user-friendly for `Get-AzContext/Tenant/Subscription` and `Invoke-AzRestMethod`
26-
* Fixed the multiple `x-ms-unique-id` values issue
24+
* Enabled Continue Access Evaluation (CAE) for all Service Principals login methods.
25+
* Supported signing in with Microsoft Account (MSA) via Web Account Manager (WAM). Enable it by `Set-AzConfig -EnableLoginByWam $true`.
26+
* Adjusted output format to be more user-friendly for `Get-AzContext/Tenant/Subscription` and `Invoke-AzRestMethod`.
27+
* Fixed the multiple `x-ms-unique-id` values issue.
2728

2829
## Version 2.15.0
2930
* Fixed the authentication issue when using `FederatedToken` in Sovereign Clouds. [#23742]
@@ -34,8 +35,8 @@
3435
* Upgraded Azure.Core to 1.35.0.
3536

3637
## Version 2.13.1
37-
* Added the module name in breaking change messages
38-
* Upgraded Microsoft.ApplicationInsights version from 2.13.1 to 2.18.0
38+
* Added the module name in breaking change messages
39+
* Upgraded Microsoft.ApplicationInsights version from 2.13.1 to 2.18.0
3940

4041
## Version 2.13.0
4142
* Supported in-tool notification for version upgrade.
@@ -46,7 +47,7 @@
4647

4748
## Version 2.12.5
4849
* Changed output stream from debug stream to warning stream for `CmdletPreviewAttribute`
49-
* Decreased the prompted frequency of preview warning message to once per cmdlet in one session
50+
* Decreased the prompted frequency of preview warning message to once per cmdlet in one session
5051
* Reworded default preview message and added estimated GA date for `CmdletPreviewAttribute`
5152
* Updated Azure.Core to 1.33.0
5253

src/Accounts/Authenticators/InteractiveWamAuthenticator.cs

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

5050
var options = new InteractiveBrowserCredentialBrokerOptions(WindowHandleUtilities.GetConsoleOrTerminalWindow())
5151
{
52+
IsLegacyMsaPassthroughEnabled = true, // to support MSA account
5253
ClientId = clientId,
5354
TenantId = tenantId,
5455
TokenCachePersistenceOptions = tokenCacheProvider.GetTokenCachePersistenceOptions(),

0 commit comments

Comments
 (0)