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.
To resolve the issue:
-
In the PingOne admin console, go to Applications > Applications and select the application the sample is using.
-
On the Configuration tab, ensure that the Redirect URIs property contains http://localhost:3000/callback.
-
In an IDE or text editor, open the
.env
file in the root folder of the sample app. -
Ensure the
REDIRECT_URI
property exactly matches the value in PingOne and is surrounded with double quotes:"http://localhost:3000/callback"
.