Error Code Portal
MicrosoftMicrosoft Entra IDError code

AADSTS501491

InvalidCodeChallengeMethodInvalidSize

Alternative forms: 501491

Code AADSTS501491 · An issue reported by Microsoft Entra ID.

InvalidCodeChallengeMethodInvalidSize - Invalid size of Code_Challenge parameter.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.