When using MSAL to obtain a JWT, Android and iOS have different versions of the returned JWT.

이 현무 60 Reputation points
2024-11-20T06:26:29.08+00:00

When authenticating with an MSAL to obtain a JWT, two different versions of the JWT are returned.

Both Android and iOS have the same endpoint, scope, and are looking at the same tenant's APP.

However, Android returns JWT v2, while iOS returns JWT v1.

Note that the scope is only “User.Read” and no Custom Scope is used.

If the problem is that Custom Scope is not used, I'm wondering why JWT v2 is returned on Android, and if there is a way to get JWT v2 on both without using custom scope.

Just to validate the token.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,645 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.