DCQL query requirements
GET/auth/dcql-queries
Retrieves the DCQL (Digital Credentials Query Language) query requirements associated with various OpenID Connect (OIDC) scopes, for the OpenID4VP 1.0 (final) grant.
Four scopes (did-registry:invite, ledger:invoke, issuers-registry:invite, track-and-trace:authorise) request a
credential of a specific type. The other seven -- every combinable scope -- request the
same shared self_attestation_credential: a credential the holder issues to itself
(iss/vc.issuer -- issuer for a VCDM 2.0 credential -- and sub/credentialSubject.id
both equal to its own DID, no termsOfUse), purely to satisfy DCQL's requirement that
credentials be non-empty.
The queries are the same for VCDM 1.1 and VCDM 2.0: format stays jwt_vc_json and the
holder chooses the version of the Verifiable Presentation it submits (see POST /auth/token).
client_metadata.vp_formats_supported reflects the requested scope(s): most accept a
Verifiable Presentation signed with either ES256 or ES256K, but did-registry:invite and
track-and-trace:authorise each require one signed with ES256K specifically.
Request
Responses
- 200
- 400
- 405
- 406
- 500
Success
Bad Request. It is also returned when the request carries a query parameter that this operation does not declare.
Method Not Allowed. Returned for any documented path invoked with an HTTP method it doesn't support.
Response Headers
Comma-separated list of HTTP methods supported by this path.
GET, HEADNot Acceptable. Returned when the request's Accept header matches none of the content
types this operation can produce. The detail lists them: Only '<type>' content type supported when the operation produces a single one, Only '<type>' or '<type>' content types supported when it produces several.
Internal Server Error