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
Which version of MSAL.NET are you using?
Assembly Microsoft.Identity.Client, Version=4.47.1.0,
Platform
WPF
What authentication flow has the issue?
Desktop
Interactive
Integrated Windows Authentication
Username Password
Device code flow (browserless)
Not sure. The app tries to acquire the token silently and AcquireTokenSilent throws an MsalUiRequiredException.
Other?
The issue is that the exception message accessed through System.Exception.Message.ToStirng() contains PII: the email ID of the user.
e.g. (Message: (Could not find a WAM account for the selected user [[email protected]]. Status: AccountNotFound Context: Account with id '(pii)' not found Tag: some-hex-number)).
Some information is scrubbed '(pii)' but not the email id of the user.
Is this a new or existing app?
b. The app is in production, I haven't upgraded MSAL, but started seeing this issue.
bgavrilMS
changed the title
[Bug] Is there a way to get a scrubbed exception message from MsalUiRequiredException object/
[Bug] MSAL exceptions should not have PII
Nov 3, 2022
Which version of MSAL.NET are you using?
Assembly Microsoft.Identity.Client, Version=4.47.1.0,
Platform
WPF
What authentication flow has the issue?
Not sure. The app tries to acquire the token silently and AcquireTokenSilent throws an MsalUiRequiredException.
Other?
The issue is that the exception message accessed through System.Exception.Message.ToStirng() contains PII: the email ID of the user.
e.g. (Message: (Could not find a WAM account for the selected user [[email protected]]. Status: AccountNotFound Context: Account with id '(pii)' not found Tag: some-hex-number)).
Some information is scrubbed '(pii)' but not the email id of the user.
Is this a new or existing app?
b. The app is in production, I haven't upgraded MSAL, but started seeing this issue.
Repro
Expected behavior
With enablePiiLogging set to false, email ID should be scrubbed in the exception message.
Actual behavior
Email ID is not scrubbed in the exception message.
The text was updated successfully, but these errors were encountered: