# Your request resulted in an error. The 'redirect\_uri' parameter must be a Login redirect URI in the client app settings

**URL:** <https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874>\
**Category:** OAuth/OIDC\
**Created:** [November 20, 2023, 4:54pm UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874 "2023-11-20T16:54:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aosborn](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@aosborn](https://devforum.okta.com/u/aosborn)\
**Post date:** [November 20, 2023, 4:54pm UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874/1 "2023-11-20T16:54:32Z")

</div>

im get the error 400 ## Bad Request Your request resulted in an error. The ‘redirect\_uri’ parameter must be a Login redirect URI in the client app settings:

Ive looked at all the help pages for this, the Sign-in redirect URIs is set to [http://localhost:44314/account/test](http://localhost:44314/account/test)  
my app.settings has “Okta”: {“RedirectUri”: “[https://localhost:44314/account/test](https://localhost:44314/account/test)”}  
the nework tab shows redirect\_uri=https%3A%2F%2Flocalhost%3A44314%2Faccount%2Ftest

I am using a trial domain - does this make a difference?  
Many thanks for any help

---

<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:** [November 20, 2023, 6:49pm UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874/2 "2023-11-20T18:49:47Z")

</div>

You mention that your network tab shows a redirect\_uri of `https%3A%2F%2Flocalhost%3A44314%2Faccount%2Ftest` but you only mentioned setting the HTTP (without TLS) version of this as a Sign-in redirect URI for the app.

Does it work if you add the TLS version, `https://localhost:44314/account/test`, as a Sign-in redirect URI as well/instead?

---

<div class="post-metadata">

**Author:** ![aosborn](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@aosborn](https://devforum.okta.com/u/aosborn)\
**Post date:** [November 21, 2023, 10:11am UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874/3 "2023-11-21T10:11:28Z")

</div>

Hello Andrea, i didnt notice this, i have added the url and I still get the same error. Do I need to add anything to my host file for localhost?  
and i also notice in the network tab it now has this uri which is not what i have specified redirect\_uri=https%3A%2F%2Flocalhost%3A44314%2Fauthorization-code%2Fcallback&response\_type=code&scope=openid%20profile&code\_challenge=n-h-oZjS2BcdVMEil448QTfooMIsbnCNcH6PUFYlxvY&code\_challenge\_method=S256

---

<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:** [November 21, 2023, 7:14pm UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874/4 "2023-11-21T19:14:39Z")

</div>

Are you using one of your SDKs for your implementation? Those tend to use the `/authorization-code/callback` as a dedicated callback route and will set it as the redirect\_uri in requests. If you’re using an SDK of ours for this, you should be able to rely on the callback component built in to handle exchanging the auth code for tokens and may just want to update the Sign-in redirect URIs to include this route.

---

<div class="post-metadata">

**Author:** ![chintala9](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@chintala9](https://devforum.okta.com/u/chintala9)\
**Post date:** [December 18, 2023, 4:38pm UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874/5 "2023-12-18T16:38:07Z")

</div>

Hi Andrea, I am having the same issue "Bad Request 400. The redirect\_uri parameter must be a login redirect uri in client app settings ". can you please help me out on this. Thanks in advance.

![image](https://global.discourse-cdn.com/oktadev/original/2X/3/38074f4e05dab2ac90a2400e26f834bf4cb48516.png)

---

<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:** [December 18, 2023, 4:48pm UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874/6 "2023-12-18T16:48:01Z")

</div>

What redirect\_uri do you see included in the /authorize request and what “Sign in redirect URIs” have you allowed within the application settings in Okta?

---

<div class="post-metadata">

**Author:** ![chintala9](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@chintala9](https://devforum.okta.com/u/chintala9)\
**Post date:** [December 18, 2023, 5:08pm UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874/7 "2023-12-18T17:08:53Z")

</div>

My enterprise okta does not shown up any application settings tab and I do not have any control over it. And also I do not see redirect\_uri in /authorize request. Below is the one which is being called  
[https://domain/oauth2/v1/authorize?client\_id](https://domain/oauth2/v1/authorize?client_id) …

---

<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:** [December 18, 2023, 5:58pm UTC](https://devforum.okta.com/t/your-request-resulted-in-an-error-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/25874/8 "2023-12-18T17:58:30Z")

</div>

If you’re not seeing a `redirect_uri` parameter included in the /authorize request, that would explain seeing this error. If this is a custom OIDC app, you’ll need to do some investigation into why the application isn’t including that parameter when making the request to Okta.
