"JWT validation failed: Issuer validation failure" - Error

Shashikant Sharma 85 Reputation points
2023-06-05T14:50:05.4866667+00:00

While trying to access an Azure function via a client application, I encountered an error in function authentication as

"JWT validation failed: Issuer validation failure - Expected: https://login.microsoftonline.com/<tenant-id>/v2.0; Token: https://sts.windows.net/<tenant-id>/"

I understand The issuer for Access token V1 is https://sts.windows.net/ and for Access token V2 it is https://login.microsoft.com/ .” But as I was verifying accessTokenAcceptedVersion setting in the app manifest for my registered Azure function and registered client app, values is set as "accessTokenAcceptedVersion": null. Microsoft doc says “The values of null and 1 result in v1.0 tokens, and the value of 2 results in v2.0 tokens.”.

As for our Apps, value of accessTokenAcceptedVersion was net to null, why we were required to modify app configurations as per Token version V2?

Why value "accessTokenAcceptedVersion": null is rejected by Azure?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,890 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,371 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.