(Solved) IDX10311: RequireNonce is ‘true’ (default) but validationContext.Nonce is null

If your application is not able to authenticate using Azure AD, you may come across to this error message: “IDX10311: RequireNonce is ‘true’ (default) but validationContext.Nonce is null“.

Here is the full error message:

IDX10311: RequireNonce is ‘true’ (default) but validationContext.Nonce is null. A nonce cannot be validated. If you don’t need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to ‘false’.

IDX10311: RequireNonce is 'true' (default) but validationContext.Nonce is null
IDX10311 error
Read More