IDX21323: RequireNonce is 'System.Boolean'

Hi, I am trying to integrate Okta with my existing .net web application (it is not a .NET core or MVC application). We are using OktaMVCoptions in the startup page (not the openidconnect configuration). When I run the application in the local host, it redirects to my staging okta URL. When i give my credentials and click on login the below error is displayed. Tried many options from google , but could not resolve.
Request your help in this regard.

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.*

1 Like

I suggest checking if you are using a custom authorization server or org authorization server. The AuthorizationServerId property is set to default by default. If you are not using a developer preview org or do not have the API Access Management feature, then you may not have a custom authorization server named default.

If the AuthorizationServerId property is correct then I suggest taking a look at the support article:
https://support.okta.com/help/s/article/Troubleshooting-IDX21323-RequireNonce-is-System-Boolean

1 Like

We have resolved this issue by setting up a irule on F5 load balancer for cookie to be secure and samesite = none

Thanks for the support

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.