Update OIDC Connection via Discovery Endpoint
Auth0 supports creating an OIDC connection via the discovery endpoint (`/.well-known/openid-configuration`) of the OIDC IdP.
If the OIDC IdP settings (e.g., authorization_endpoint, token_endpoint etc.) changes, it is reflected in the discovery endpoint content.
- OIDC
- Discovery Endpoint
- There are two ways to create or update an OIDC connection - via OIDC discovery endpoint or via supplying the OIDC IdP settings (e.g., issuer, authorization_endpoint, token_endpoint and etc) explicitly.
The Auth0 management API supports both ways of creating and updating OIDC connections.
So, if there is a need to update the OIDC connection via the discovery endpoint, the Auth0 Management API must be used.
|
Create an OIDC Connection (POST) |
Update an OIDC Connection | |
|
via Discovery Endpoint |
Dashboard Management API |
Management API |
|
via IdP Settings |
Management API |
Dashboard Management API |
- Example payload of management API calls
- As shown in the above table, the Auth0 Management API accepts both discovery endpoint and OIDC IdP settings when creating/updating an OIDC connection.
So, if there is a need to create/update an OIDC connection via the discovery endpoint, please ensure to **NOT** include any OIDC IdP settings in the payload (`options` or `options.oidc_metadata`). Here is such a payload for example:
{
"options": {
"client_id": "abcd1234",
"discovery_url": "https://OIDC_IDP_DOMAIN/.well-known/openid-configuration"
}
}