AppModelv2-WebApp-OpenIDConnect-DotNet icon indicating copy to clipboard operation
AppModelv2-WebApp-OpenIDConnect-DotNet copied to clipboard

The nonce cannot be validated issue occurred

Open Nandhakumar2187 opened this issue 4 years ago • 3 comments

Hi, We have received the below error while running this source.

Error: IDX21323: RequireNonce is 'System.Boolean'. OpenIdConnectProtocolValidationContext.Nonce was null, OpenIdConnectProtocol.ValidatedIdToken.Payload.Nonce was not null. The nonce cannot be validated. If you don't need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to 'false'. Note if a 'nonce' is found it will be evaluated.

Kindly let us know if anything to be added in startup.cs page.

Thank you in advance.

Nandhakumar2187 avatar Aug 30 '21 16:08 Nandhakumar2187

@Nandhakumar2187 did you start the app as http:// wheareas the redirect uri is https:// ?

jmprieur avatar Aug 30 '21 18:08 jmprieur

@jmprieur Yes, we have start the app as http:// and we have given the Redirect URI as http://localhost:53016/

Nandhakumar2187 avatar Aug 31 '21 04:08 Nandhakumar2187

@Nandhakumar2187 Do you still have the issue persists or any resolution being done. As I am also experiencing the same issue while using localhost as the PostLogoutRedirectUri

anishninan1984 avatar Dec 29 '22 08:12 anishninan1984