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:
- Log into the Statista Auth0 tenant
- Navigate to Authentication -> Enterprise
- 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/campuspage is cached for 20 hours. After setting the flag, it may take up to 20 hours for the change to be reflected.
- Navigate to the
/login/campuspage in the relevant Statista environment - Open the institution dropdown
- 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_pageflag was accidentally set. You can remove it by setting the value tofalseor by patching the metadata with an empty string.