Debian Codegraph @

docs/idp/openid-connect/client-id-metadata-document.rst

raw
1 Client ID Metadata Document
2 ===========================
3
4 Support for the Client ID Metadata Document (`draft-ietf-oauth-client-id-metadata-document
5 <https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/>`_) can be
6 turned on via ``IDP_OIDC_CIMD_ENABLED``.
7
8 When enabled, clients can use an HTTPS URL as their ``client_id``. The
9 authorization server will fetch the metadata document from that URL to obtain the
10 client's registration information. No prior registration (such as Dynamic Client
11 Registration) is required. CIMD clients are always public clients and must use
12 PKCE.
13
14 The fetched metadata is cached for the duration specified by
15 ``IDP_OIDC_CIMD_CACHE_TIMEOUT`` (default: 3600 seconds). Rate limiting and a
16 per-``client_id`` lock prevent excessive outbound fetches.
17
18 To restrict which URLs are accepted as a ``client_id``, override the
19 ``is_cimd_url_allowed()`` adapter method.