PingOne

Troubleshooting redirect URI mismatch errors

Try the tips and workarounds in the following section if you encounter a redirect URI mismatch error.

How to fix "Redirect URI mismatch" errors

The sample application sends a redirect_uri parameter when contacting the PingOne instance. If the value doesn’t match a value configured in the web app in PingOne, you receive the following error:

The request could not be completed. One or more validation errors were in the request.

error message

To resolve the issue:

  1. In the PingOne admin console, go to Applications > Applications and select the application the sample is using.

  2. On the Configuration tab, ensure that the Redirect URIs property contains http://localhost:3000/callback.

  3. In an IDE or text editor, open the .env file in the root folder of the sample app.

  4. Ensure the REDIRECT_URI property exactly matches the value in PingOne and is surrounded with double quotes: "http://localhost:3000/callback".