The `LoginId.federatedLogin` Method of ACUL SDK Returns "invalid-connection" Error

Overview

When Advanced Customization for Universal Login (ACUL) is enabled, the LoginId.federatedLogin method of the Advanced Customization for Universal Login (ACUL) Software Development Kit (SDK) returns an error when called.

    {
        "code": "invalid-connection",
        "message": "Invalid connection"
    }

The network trace in the browser shows the POST /u/login/identifier?state=<state> request returns a 400 status.

Applies To

  • Universal Login Page

  • Advanced Customization for Universal Login (ACUL)

  • Social Connections

  • Enterprise Connections

Cause

The connection is either not enabled or not available

Solution

  1. Verify the connection is enabled for the client/application that started the login flow. See Update Application Connections for details.

  2. If an organization is enabled, verify the connection is enabled for the organization in the context of the login flow. Refer to Enable Connections for Organizations.

  3. If the connection is enabled for both the client and organization, check the connection settings. Ensure the Display connection as a button option is toggled ON, as shown in the screenshot below.

Display button as a connection checkbox

Recommended content

No recommended content found...