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

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.

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

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

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

1 Like