[Bug] 'Illegal base64 character 2d' occurs when decoding token values in TokenRequestExecutor.createAuthenticationResultFromOauthHttpResponse for specific accounts #922
Labels
Bug
Something isn't working, needs an investigation and a fix
confidential-client
For issues related to confidential client apps
P1
High priority items, should be done before any other work
public-client
For questions/issues related to public client apps
Regression
Behavior that worked in a previous release that no longer works in a newer release
Library version used
1.19.1
Java version
1.8
Scenario
ConfidentialClient - web site (AcquireTokenByAuthCode)
Is this a new or an existing app?
None
Issue description and reproduction steps
While using msal4j OAuth authentication, for specific users, the error 'java.lang.IllegalArgumentException: Illegal base64 character 2d' occurred.
The error location is as follows:
For your reference, this error does not occur in version 1.18.0 which uses Base64.getUrlEncoder().
Thank you
Relevant code snippets
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
The text was updated successfully, but these errors were encountered: