Hi @Henry
Thank you for posting this in Microsoft Q&A.
I understand you are reporting an error message (IDX21323) that occurs when testing an ASP.NET framework project that uses Microsoft Entra ID (OpenID) for login. The error only occurs on Chromium-based browsers (Edge and Chrome) when the project is published to an Azure-hosted site (IIS).
The RequireNonce property is used to ensure that the Nonce value in the token matches the Nonce value that was sent in the authentication request. This is a security feature that helps prevent replay attacks. You can either set the 'RequireNonce' property to false, or you can provide a 'RequireNonce' in the request.
If setting RequireNonce to false did not resolve the issue, it's possible that there is another problem with the authentication flow.
1.Make sure that the redirect URI in your authentication request matches the redirect URI that is registered for your application in Azure AD.
2.Make sure that all website traffic is over https. Sometimes it could be a configuration that needs to be fixed in the application to ensure https.
.AddCookie(options => { options.Cookie.SameSite = SameSiteMode.None; options.Cookie.SecurePolicy = CookieSecurePolicy.Always; options.Cookie.IsEssential = true; });
3.If SSL is not enabled in Visual Studio or in the Windows VM. Enabling SSL to enforce https and ensure that user have all the necessary parameters for the login request.
4.After the user authenticates, the authentication provider will redirect the user back to your application with an authentication response.
5.Check the token validation parameters: Make sure that the token validation parameters are correctly configured to validate the access token and ID token.
Thanks,
Navya.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.