Description: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings

Hi. I want to set okta authorization in my express app and i followed this tutorial Build and Understand a Simple Node.js Website with User Authentication | Okta Developer with some changes. I’m getting this error.
In my app redirect_uri set to ‘http://localhost:3000/authorization-code/callback’ and application Sign-in redirect URIs set to ‘http://localhost:3000/authorization-code/callback’.
Why i face this error?
when request url send to okta it’s ‘https://dev-96563707.okta.com/oauth2/default/v1/authorize?client_id=0oa1blugcm43UZpTP5d7&scope=openid%20profile&response_type=code&redirect_uri=https%3A%2F%2Flocalhost%3A8080%2Fauthorization-code%2Fcallback&state=1ZTQl_DrYIkRnPbhWp3Zj_aefAI9taAYVKrnFT5QM0Y’.
Is it sent incorrectly? change : to %3A and etc.

Looks like your app is trying to use port 8080, but the Sign in redirect URI you added to your app (in the Okta Admin Console) uses port 3000.

If you update the config in Okta to include the redirect_uri from your authorize url, https://localhost:8080/authorization-code/callback, does it work then?

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