Okta Error "400 Bad Request" Occurs When Redirecting to the /authorize Endpoint With No Error Description
Last Updated:
Overview
An OpenID Connect (OIDC) authentication flow fails with a 400 Bad Request error and no detailed description due to a misconfigured authorize URL or application setting in Okta. Verify the application status and ensure the client ID matches the Okta organization domain exactly to resolve this issue. During an attempt to initiate an OIDC authentication flow, Okta redirects to the /authorize endpoint, and the following error message appears without a detailed description:
400 Bad Request
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- OpenID Connect (OIDC) Application
Cause
A misconfiguration in the authorize URL or within the application settings in Okta invalidates the authorization request. If no error description appears on the page, Okta does not recognize the provided redirect_uri, or an issue exists with the client_id.
NOTE: Okta does not generate System Log events for this specific error. Only the end user sees this error message in the browser.
Solution
What steps resolve the 400 Bad Request error?
Verify the application status in the Admin Console and confirm the client ID configuration matches the request parameters exactly.
- Verify the application status in the Admin Console.
- Ensure the OIDC application status is Active.
- Verify that the request provides the valid
client_id. - Confirm the
client_idbelongs to the specific Okta organization subdomain where the request originates. - Ensure the
client_idmatches the value in the Admin Console exactly, as these values are case-sensitive. - Verify that no extraneous spaces exist in the
client_idor other request parameters. - Check that the
client_idstate is Active.
