User encounters the below 400 Bad Request error page when logging into OIDC application (Okta hosted widget or self-hosted widget) due to not registering the value of ${redirect_uri} that used in authorize request in the Open ID client in Okta, as an allowed Sign-in redirect URIs. Refer to Error "400 Bad Request" - The redirect_uri Parameter Must Be a Login Redirect URI in the Client App Settings for more information. This is the default Okta error page. If a customized error page is needed, a custom error page can be configured in the settings.
- Okta hosted sign-in widget
- Okta self-hosted sign-in Widget
- Sign-in Widget
- Authorization Code Flow
- Implicit Flow
- Okta Identity Engine (OIE)
Default Okta error page is shown as the custom error page is not configured in Okta.
- Browse to Security > Identity Providers.
- Click the settings button next to Add Identity Provider.
- Select the radio button to Use a custom error page and enter the URL.
Given this setting, Okta will not display the 400 error page to end users but will redirect them to the configured URL.
