Okta Error "400 Bad Request" 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 authorized URL or application setting in Okta. Resolving this issue requires verifying the application status and ensuring the client ID matches the Okta organization subdomain exactly. During an attempt to initiate an OIDC authentication flow, a redirection to the /authorize endpoint occurs, 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 authorized 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
How is the 400 Bad Request error resolved?
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.
- Check if 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.
