-
Notifications
You must be signed in to change notification settings - Fork 347
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] ApiContractViolation exception with WithBrokerPreview() during logout #3685
Comments
@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.:
|
@bgavrilMS
|
During signout using MSALRuntime broker all account and token metadata are removed from MSAL's cache and
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 :
|
Great catch, thank you @gladjohn |
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: