OpenID Connect Connection Error: 'display_values_supported' Length Must Be Less Than 10 Characters
Last Updated:
Overview
This article explains why an error occurs when creating an OpenID Connect (OIDC) Enterprise Connection in Auth0 using an OIDC Discovery URL.
The following error displays:
Error: "Something happened while trying to create your connection: "options.oidc_metadata.display_values_supported[2]" length must be less than or equal to 10 characters long"
Applies To
- OIDC Enterprise Connection
- OIDC Discovery URL
Cause
The Auth0 platform imposes a 10-character maximum length on the values within the display_values_supported array found in the OIDC Discovery Document. The partner's OIDC metadata contains a value that exceeds this internal Auth0 limit, causing the validation error.
Solution
Auth0 does not provide a configuration option to ignore this specific validation error when using the Discovery URL directly. A workaround is to manually configure the connection using custom metadata.
- Download the OIDC Discovery Document.
- Access the partner's OIDC Discovery URL in a browser
- Save the resulting JSON content locally.
- Edit the JSON Metadata.
- Open the downloaded JSON file.
- Locate the display_values_supported array.
- Remove the value(s) that exceed the 10-character limit.
- Upload the Edited Metadata to Auth0.
- Select the option in Auth0 to manually configure the OIDC Connection or find the option to upload the OIDC configuration JSON file.
- Upload the edited JSON file.