Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] WAM - Users should be able to perform account switch #3929

Closed
gladjohn opened this issue Feb 1, 2023 · 0 comments · Fixed by #3930
Closed

[Bug] WAM - Users should be able to perform account switch #3929

gladjohn opened this issue Feb 1, 2023 · 0 comments · Fixed by #3930

Comments

@gladjohn
Copy link
Contributor

gladjohn commented Feb 1, 2023

  1. Login in using WAM (new) - ATI

image

  1. Click "Sign in with another account"

image

  1. Modify the UPN, and enter the password for the new account and "Sign in"

image

Actual :

Error True MSAL 4.46.0.0 MSAL.NetCore .NET 6.0.13 Microsoft Windows 10.0.19045 [2023-02-01 21:10:36Z] [WamBroker] Could not login interactively. Status: UserSwitch
Context: WAM returned AccountSwitch
Tag: 0x20321194
Info True MSAL 4.46.0.0 MSAL.NetCore .NET 6.0.13 Microsoft Windows 10.0.19045 [2023-02-01 21:10:36Z] [WamBroker] Processing WAM exception
Verbose True MSAL 4.46.0.0 MSAL.NetCore .NET 6.0.13 Microsoft Windows 10.0.19045 [2023-02-01 21:10:36Z] [WamBroker] TelemetryData: {"additional_query_parameters_count":"1","all_error_tags":"6m7gu|6m7gu","api_error_code":"0","api_error_context":"PII logging enabled on client.","api_error_tag":"6m7gu","api_name":"SignInInteractively","api_status_code":"StatusInternal::UserSwitch","authority_type":"AAD","authorization_type":"CompleteBrokerResult","broker_app_used":"true","client_id":"04f0c124-f2bc-4f59-8241-bf6df9866bbd","correlation_id":"57f58019-090a-4603-ba1d-c58edc86afd1","is_successful":"false","msal_version":"1.0.0+local","msalruntime_version":"0.13.3","normalized_realm":"f645ad92-e38d-4d1a-b510-d1b09a74a8ca","original_authority":"https://login.microsoftonline.com/organizations","read_token_last_error":"missing required parameter","request_duration":"122013","request_eligible_for_broker":"true","server_suberror_code":"PII logging enabled on client.","start_time":"2023-02-01T21:08:34.000Z","stop_time":"2023-02-01T21:10:36.000Z","transfer_token_error":"PII logging enabled on client.","ui_event_count":"1","wam_telemetry":"{"x_ms_clitelem":"1,0,0,,","ui_visible":true,"tenant_id":"f645ad92-e38d-4d1a-b510-d1b09a74a8ca","scope":"https://management.core.windows.net//.default offline_access openid profile","redirect_uri":"ms-appx-web://Microsoft.AAD.BrokerPlugin/04f0c124-f2bc-4f59-8241-bf6df9866bbd","provider_id":"https://login.windows.net\",\"prompt_behavior\":\"login\",\"http_status\":200,\"http_event_count\":4,\"device_join\":\"aadj\",\"correlation_id\":\"{57f58019-090a-4603-ba1d-c58edc86afd1}\",\"client_id\":\"04f0c124-f2bc-4f59-8241-bf6df9866bbd\",\"cache_event_count\":0,\"broker_version\":\"10.0.19041.2311\",\"authority\":\"https://login.microsoftonline.com/organizations\",\"api_error_code\":0,\"account_join_on_start\":\"secondary\",\"account_join_on_end\":\"not_joined\",\"account_id\":\"9f4880d8-80ba-4c40-97bc-f7a23c703084\",\"silent_code\":0,\"silent_bi_sub_code\":0,\"silent_message\":\"\",\"silent_status\":3,\"is_cached\":0}","was_request_throttled":"false","write_account_status":"successful","write_token":"AT|ID"}
Verbose True MSAL 4.46.0.0 MSAL.NetCore .NET 6.0.13 Microsoft Windows 10.0.19045 [2023-02-01 21:10:36Z] [WamBroker] unknown_broker_error Unknown Status: UserSwitch
Context: WAM returned AccountSwitch
Tag: 0x20321194 (error code 0) (internal error code 540152212)
Exception thrown: 'Microsoft.Identity.Client.MsalServiceException' in Microsoft.Identity.Client.Broker.dll
Exception thrown: 'Microsoft.Identity.Client.MsalServiceException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Identity.Client.MsalServiceException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Identity.Client.MsalServiceException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Identity.Client.MsalServiceException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Identity.Client.MsalServiceException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.Identity.Client.MsalServiceException' in System.Private.CoreLib.dll
'NetCoreWinFormsWAM.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.13\System.Diagnostics.StackTrace.dll'.
'NetCoreWinFormsWAM.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.13\System.Reflection.Metadata.dll'. Symbols loaded.
'NetCoreWinFormsWAM.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.13\System.Collections.Immutable.dll'. Symbols loaded.
Error True MSAL 4.46.0.0 MSAL.NetCore .NET 6.0.13 Microsoft Windows 10.0.19045 [2023-02-01 21:10:37Z - 57f58019-090a-4603-ba1d-c58edc86afd1] MSAL.NetCore.4.46.0.0.MsalServiceException:
ErrorCode: unknown_broker_error
Microsoft.Identity.Client.MsalServiceException: Unknown Status: UserSwitch
Context: WAM returned AccountSwitch
Tag: 0x20321194 (error code 0) (internal error code 540152212)
at Microsoft.Identity.Client.Broker.WamAdapters.ThrowExceptionFromWamError(AuthResult authResult, AuthenticationRequestParameters authenticationRequestParameters, ILoggerAdapter logger) in F:\scopes_required\src\client\Microsoft.Identity.Client.Broker\WamAdapters.cs:line 133
at Microsoft.Identity.Client.Broker.WamAdapters.HandleResponse(AuthResult authResult, AuthenticationRequestParameters authenticationRequestParameters, ILoggerAdapter logger, String errorMessage) in F:\scopes_required\src\client\Microsoft.Identity.Client.Broker\WamAdapters.cs:line 296
at Microsoft.Identity.Client.Broker.RuntimeBroker.SignInInteractivelyAsync(AuthenticationRequestParameters authenticationRequestParameters, AcquireTokenInteractiveParameters acquireTokenInteractiveParameters) in F:\scopes_required\src\client\Microsoft.Identity.Client.Broker\RuntimeBroker.cs:line 228
at Microsoft.Identity.Client.Broker.RuntimeBroker.AcquireTokenInteractiveAsync(AuthenticationRequestParameters authenticationRequestParameters, AcquireTokenInteractiveParameters acquireTokenInteractiveParameters) in F:\scopes_required\src\client\Microsoft.Identity.Client.Broker\RuntimeBroker.cs:line 194
at Microsoft.Identity.Client.Internal.Broker.BrokerInteractiveRequestComponent.FetchTokensAsync(CancellationToken cancellationToken) in F:\scopes_required\src\client\Microsoft.Identity.Client\Internal\Broker\BrokerInteractiveRequestComponent.cs:line 58
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.FetchTokensFromBrokerAsync(String brokerInstallUrl, CancellationToken cancellationToken) in F:\scopes_required\src\client\Microsoft.Identity.Client\Internal\Requests\Interactive\InteractiveRequest.cs:line 87
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.GetTokenResponseAsync(CancellationToken cancellationToken) in F:\scopes_required\src\client\Microsoft.Identity.Client\Internal\Requests\Interactive\InteractiveRequest.cs:line 99
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.ExecuteAsync(CancellationToken cancellationToken) in F:\scopes_required\src\client\Microsoft.Identity.Client\Internal\Requests\Interactive\InteractiveRequest.cs:line 66
at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken) in F:\scopes_required\src\client\Microsoft.Identity.Client\Internal\Requests\RequestBase.cs:line 95
StatusCode: 0
ResponseBody:
Headers:

Expected : User should be able to perform account switch and still get access tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant