[Bug] If client_info is invalid, throw exception #5013
Closed as not planned
Description
Library version used
4.63.1
.NET version
9
Scenario
ConfidentialClient - web site (AcquireTokenByAuthCode)
Is this a new or an existing app?
This is a new app or experiment
Issue description and reproduction steps
- Use an IdP which returns a client_info, but instead of the expected format (base64url encoded version of {"uid": , "utid": "} it returns a bad value like "foo".
Actual: MSAL incorrectly ignores the bad format and returns a result with a bad AccountID
Expected: an exception stating that the Identity Provider sends incorrect values.
Relevant code snippets
No response
Expected behavior
No response
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response