Skip to content

[Bug] If client_info is invalid, throw exception #5013

Closed as not planned
Closed as not planned
@bgavrilMS

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

  1. 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
image

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions