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

**URL:** <https://devforum.okta.com/t/description-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/15253>\
**Category:** Questions\
**Created:** [July 24, 2021, 12:19pm UTC](https://devforum.okta.com/t/description-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/15253 "2021-07-24T12:19:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miladrm](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@miladrm](https://devforum.okta.com/u/miladrm)\
**Post date:** [July 24, 2021, 12:19pm UTC](https://devforum.okta.com/t/description-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/15253/1 "2021-07-24T12:19:39Z")

</div>

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](https://developer.okta.com/blog/2018/08/17/build-and-understand-user-authentication-in-node) with some changes. I’m getting this error.  
In my app redirect\_uri set to ‘[http://localhost:3000/authorization-code/callback](http://localhost:3000/authorization-code/callback)’ and application Sign-in redirect URIs set to ‘[http://localhost:3000/authorization-code/callback](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](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.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [July 26, 2021, 3:01pm UTC](https://devforum.okta.com/t/description-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/15253/2 "2021-07-26T15:01:45Z")

</div>

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](https://localhost:8080/authorization-code/callback), does it work then?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 10, 2024, 12:50am UTC](https://devforum.okta.com/t/description-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/15253/3 "2024-02-10T00:50:17Z")

</div>

Closed on February 10, 2024, 12:50am UTC

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