<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Customize Default Error Message on the Okta Login Form
Okta Identity Engine
Administration
Overview

This article clarifies whether it is possible to customize the default error message displayed on the Okta login form. The user might see the following generic error message during a failed sign-in attempt:


Unable to sign in

 

Example of "unable to sign in" error on the login page

Applies To
  • Okta Sign-In Widget
  • Login form customization
  • Okta Identity Engine (OIE)
Solution

It is possible to customize the default error message. The generic error maps to the errors.E0000004 key in the backend. Override this key in the widget configuration to change the text.

  1. Log in to the Okta Admin Console.
  2. In the left-hand menu, go to Customizations > Brands.
  3. Select the brand to be modified.
  4. Go to the Pages tab.
  5. Locate the Sign-in page section and click Configure (or Edit).
  6. Add the following code snippet within the {{{OktaUtil}}} object to customize the text:
    var config = OktaUtil.getSignInWidgetConfig();
    
    if (config.i18n.en){
    config.i18n.en['errors.E0000004'] = 'Custom Text';
    }

 

Related References

Loading
Customize Default Error Message on the Okta Login Form