You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pwallner - I think sign-out from WAM is best effort. Obviously we should not throw an error and we'll need to fix this. But as a workaround, can you catch this exception and ignore it? I think the experience is ok, i.e.:
all account and token metadata are removed from MSAL's cache
During signout using MSALRuntime broker all account and token metadata are removed from MSAL's cache and
GetAccounts() no longer returns the account that was signed out. But on a test app with global exception handler we see the following error :
Found the issue in Signout API where it was calling into ReleaseAuthResult to release the SignOut Result handle. Also fixed issues with Account Discovery and Read Account APIs.
Testing :
Added global exception handler to the debug app to catch such scenarios in the future.
modified debug test app to include using in the ReadAccount test so MSALRuntime issues are exposed
added account discovery test
made logging optional as it fills the console and the actual intent of using the test app is being lost
Logs and network traces
Which version of MSAL.NET are you using?
Microsoft.Identity.Client 4.47.0
Microsoft.Identity.Client.Broker 4.47.0-preview
Platform
.NET 6 WPF
What authentication flow has the issue?
Is this a new or existing app?
This is a new app or experiment.
Repro
Expected behavior
During logout no exception
Actual behavior
During logout I receive the exception as written above in the log output
Possible solution
?
Additional context / logs / screenshots / links to code
I receive the exception with this piece of code:
The text was updated successfully, but these errors were encountered: