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

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
my app.settings has “Okta”: {“RedirectUri”: “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

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?

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

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.