# AWS ALB(nginx web server) with Okta authentication - getting 400 bad request

**URL:** <https://devforum.okta.com/t/aws-alb-nginx-web-server-with-okta-authentication-getting-400-bad-request/32489>\
**Category:** OAuth/OIDC\
**Created:** [March 2, 2025, 2:56pm UTC](https://devforum.okta.com/t/aws-alb-nginx-web-server-with-okta-authentication-getting-400-bad-request/32489 "2025-03-02T14:56:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suddhasilsarkar](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@suddhasilsarkar](https://devforum.okta.com/u/suddhasilsarkar)\
**Post date:** [March 2, 2025, 2:56pm UTC](https://devforum.okta.com/t/aws-alb-nginx-web-server-with-okta-authentication-getting-400-bad-request/32489/1 "2025-03-02T14:56:41Z")

</div>

Hi Team,

I need help with Okta integration using AWS ALB and Nginx. The goal is to authenticate users with Okta before accessing [rock.sudsarkworld.com](http://rock.sudsarkworld.com).

I get this 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: [//dev-02955070-admin.okta.com/admin/app/oidc\_client/instance/0oanmouph2Hc83KGz5d7#tab-general](https://dev-02955070-admin.okta.com/admin/app/oidc_client/instance/0oanmouph2Hc83KGz5d7#tab-general)

Clicking ‘return home’ leads to authentication and then the Okta admin portal. Using the ALB’s DNS instead of the application URL doesn’t help. Currently, I’m just testing with Nginx; there’s no application configured.

What should I do to resolve this? Any additional information needed?

Note: HTTPS removed from links due to URL limit.

Thanks, Tublai

---

<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:** [March 3, 2025, 4:22pm UTC](https://devforum.okta.com/t/aws-alb-nginx-web-server-with-okta-authentication-getting-400-bad-request/32489/2 "2025-03-03T16:22:54Z")

</div>

Take a look at the following article about this error, which mentions that you need to register the redirect\_uri that the application will sent to Okta in order to resolve it: [Error “400 Bad Request” - The redirect\_uri Parameter Must Be a Login Redirect URI in the Client App Settings | Okta Help Center](https://support.okta.com/help/s/article/The-redirect-uri-parameter-must-be-an-absolute-URI?language=en_US)

---

<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:** [April 2, 2025, 4:23pm UTC](https://devforum.okta.com/t/aws-alb-nginx-web-server-with-okta-authentication-getting-400-bad-request/32489/3 "2025-04-02T16:23:27Z")

</div>

Closed on April 2, 2025, 4:23pm UTC

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