Skip to content

Hide a Connection from the Campus Login Page

Overview

The /login/campus page displays a dropdown listing available SSO connections for users to select their institution.

When a new SAML or OIDC connection is created in Auth0 (see SAML onboarding and OIDC onboarding), it will automatically appear in the dropdown — no additional configuration is needed. Because the list is cached, it may take up to 20 hours for a newly created connection to show up.

In some cases, a connection should not appear in this list — for example, when a connection is only accessible via a direct deep link or is not intended for self-service discovery. Setting the hide_connection_login_campus_page metadata flag on a connection will hide it from the dropdown.

Prerequisites

  • Access to Statista's Auth0 tenant
  • Auth0 Management API credentials (for setting metadata flags)

Steps

1. Identify the Connection

Find the Auth0 connection ID of the connection you want to hide:

  1. Log into the Statista Auth0 tenant
  2. Navigate to Authentication -> Enterprise
  3. Find the customer's connection and note its Connection ID (visible in the URL when editing the connection, e.g., con_xxxxxxxxxxxxxxxxx)

2. Set the hide_connection_login_campus_page Metadata Flag

The connection metadata in Auth0 must include a hide_connection_login_campus_page=true flag.

Important: This must be done via the Management API (not the dashboard).

Example API call:

curl -X PATCH "https://{auth0-domain}/api/v2/connections/{connection-id}" \
  -H "Authorization: Bearer {management-api-token}" \
  -H "Content-Type: application/json" \
  -d '{
    "metadata": {
      "hide_connection_login_campus_page": true
    }
  }'

Replace {auth0-domain}, {connection-id}, and {management-api-token} with the appropriate values.

3. Verify the Change

Note: The dropdown list on the /login/campus page is cached for 20 hours. After setting the flag, it may take up to 20 hours for the change to be reflected.

  1. Navigate to the /login/campus page in the relevant Statista environment
  2. Open the institution dropdown
  3. Confirm the connection no longer appears in the list

Troubleshooting

  • Connection still visible in the dropdown: Verify that the metadata flag was set correctly via the Management API. Double-check the connection ID and that the request returned a successful response.
  • Connection missing unexpectedly: If a connection disappears that should be visible, check whether the hide_connection_login_campus_page flag was accidentally set. You can remove it by setting the value to false or by patching the metadata with an empty string.

References