-
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] MSAL.NET throws a MsalClientException and not a MsalServiceException for the reset password exception from AAD B2C #1276
Comments
So what is happening is:
Note sure when such a regression would have occured, since the logic that throws exceptions has not been touched since we split ADAL from MSAL. I agree that we should look at these exceptions again - this is indeed a server exception. |
Workaround: catch MsalException instead. |
@bgavrilMS Thanks for investigating. I'll update the sample |
Absolutely a regression. Assuming when this is fixed we will have improved test coverage for the exceptions. Aside: The sample is doing something it really shouldn't do thus there should probably also be an update to the sample. |
@henrik-me @jmprieur ...so here's the commit where the change happened, i think, because the changed happened between 3.08 and 4.0 release, and this commit changes from catching a client exception to a service one. I haven't had any customers report this as an issue...do we want to move it back to a service exception or leave it as is? We can discuss tomorrow. |
yes agree. even if this is a behavioral breaking change. |
Included in 4.3.0 release |
Which Version of MSAL are you using ?
First noticed in 4.1, but not sure which version introduced the change in behavior
Platform
mobile, desktop, web app
Repro
example, include this code:
Can be tried w/B2C desktop sample.
Expected behavior
MSAL.NET should throw a
MsalServiceException
with the following error message:AADB2C90118: The user has forgotten their password.
Actual behavior
MSAL.NET throws a
MsalClientException
insteadThe text was updated successfully, but these errors were encountered: