Which members must every DCQL Credential Query have?

DCQL Credential Query carries id, format and metaOID4VP 1.0 §6.1MUSTRoles: verifier

Requirement as recorded in the ProtocolSoup registry

Each entry in credentials MUST be an object with an id of alphanumeric, underscore or hyphen characters that is not present more than once in the Authorization Request, a format, and a meta object.

Read §6.1 in OID4VP 1.0

Self-test verdict

PassCommit 00bac3fEvaluated

This is ProtocolSoup's result against its own implementation at the commit shown. It is not a certification of ProtocolSoup or of any other product.

Captured from production

Captured Commit 00bac3f

Captured from the deployed ProtocolSoup at the commit shown. Every request and response is shown exactly as sent and received.

Passing exchange

Accepted, as requiredConformance client

The conformance client fetches a request object from the request_uri. Each entry of dcql_query.credentials must be an object with an id of alphanumeric, underscore or hyphen characters that no other entry repeats, a format, and a meta object.

Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.

  1. 1.GET https://protocolsoup.com/oid4vp/request/rDMtEcxMNnNwQlHEIGaMvSql200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    GET /oid4vp/request/rDMtEcxMNnNwQlHEIGaMvSql HTTP/2.0
    Accept: application/oauth-authz-req+jwt
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    

    Response

    HTTP/2.0 200 OK
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb7b81e5f3cdb-MSP
    Content-Length: 1650
    Content-Type: application/oauth-authz-req+jwt
    Date: Sun, 06 Dec 2026 13:43:06 GMT
    Fly-Request-Id: 01M95SG3S0R7DH7M0S2M6G40DS-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Referrer-Policy: strict-origin-when-cross-origin
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=gPZY1qFQnTKkTKZZAUcLpIATZ01o2JuHqwAoEWdki5UzSUYegyMaqlmc1SuVxMs7FXASc6STmKQhz8%2Bu%2FvDWTXhd8oQSTvNq%2FejX1AvkVMn76cBus0rTCte8h5GF9SyCwoc%3D"}]}
    Server: cloudflare
    Speculation-Rules: "/cdn-cgi/speculation"
    Vary: Origin
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoib2F1dGgtYXV0aHotcmVxK2p3dCJ9.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJjbGllbnRfbWV0YWRhdGEiOnsidnBfZm9ybWF0c19zdXBwb3J0ZWQiOnsiZGMrc2Qtand0Ijp7ImtiLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il0sInNkLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il19LCJqd3RfdmNfanNvbiI6eyJhbGdfdmFsdWVzIjpbIkVTMjU2IiwiUlMyNTYiLCJFZERTQSJdfSwibGRwX3ZjIjp7InByb29mX3R5cGVfdmFsdWVzIjpbIkRhdGFJbnRlZ3JpdHlQcm9vZiIsIkVkMjU1MTlTaWduYXR1cmUyMDIwIl19LCJtc29fbWRvYyI6eyJkZXZpY2VhdXRoX2FsZ192YWx1ZXMiOlstN10sImlzc3VlcmF1dGhfYWxnX3ZhbHVlcyI6Wy03XX19fSwiZGNxbF9xdWVyeSI6eyJjcmVkZW50aWFscyI6W3siZm9ybWF0IjoiZGMrc2Qtand0IiwiaWQiOiJkZWdyZWUiLCJtZXRhIjp7InZjdF92YWx1ZXMiOlsiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL2NyZWRlbnRpYWxzL3VuaXZlcnNpdHlfZGVncmVlIl19fV19LCJleHAiOjE3OTY1NjQ4ODUsImlhdCI6MTc5NjU2NDU4NSwiaXNzIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJqdGkiOiJyRE10RWN4TU5uTndRbEhFSUdhTXZTcWwiLCJub25jZSI6ImtTU3lqSE8zaXhhcEN6ckR2V2ZNRS1pVWMtXy1pOWdVRGY3cTh0WHRmWmciLCJyZXNwb25zZV9tb2RlIjoiZGlyZWN0X3Bvc3QiLCJyZXNwb25zZV90eXBlIjoidnBfdG9rZW4iLCJyZXNwb25zZV91cmkiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZwL3Jlc3BvbnNlIiwic3RhdGUiOiJwNWFGNlNKbWd1aHVjYTljQ1htUV9tWnIifQ.piliUYIKNpNRWFHCBYzKuboQNbs4EYEu6Yr04166cNbutffaMCNZQwEqa2Jpsi0P721dER97gjDpo7GSdso5sBuJ1UZ_erOup7Cc22x0HK7kbkV8ShSd1eeQVreBbIVrn9ec_mQ_-asvlIuVq5VhusWD6-ZmtLK9a1J9vTpAUZTMR6ZeCdlnHp3IbIVOrw-vbwJ8RadBxpfZ8xPNaGaNQcycWto_yHry606RK-UadR-QG0vohh8GH4Rjoor9bYV5ZZxWNxl5v6X7B7F54idwTOkxIB1NRDnh54R9gm3e08hRHduLmwIv72luTj3RXCXRDlrX3VX_sK1x0EYTWtRNSg

Failing exchange

Not captured: A Credential Query is written by the Verifier into its own request object, and OpenID4VP defines no wallet or client request that could make it malformed, so there is nothing for the verifier to reject.

Run it live

Looking Glass runs the flow that sends the message this requirement governs, against the same server, and decodes each exchange as it happens.

Open the flow in Looking Glass

Tests

Implementation

Explainer

What this requires

OpenID4VP 1.0 Section 6 makes credentials "REQUIRED. A non-empty array of Credential Queries as defined in Section 6.1". Section 6.1 then says "Each entry in credentials MUST be an object with the following properties", and lists three that are REQUIRED.

For id: "The value MUST be a non-empty string consisting of alphanumeric, underscore (_), or hyphen (-) characters. Within the Authorization Request, the same id MUST NOT be present more than once." For format: "A string that specifies the format of the requested Credential. Valid Credential Format Identifier values are defined in Appendix B." For meta: "An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential", and "If empty, no specific constraints are placed on the metadata or validity of the requested Credential."

Why it exists

The id is the key the Wallet answers under in vp_token, so two queries with one id cannot be told apart in the response. The format decides how the Wallet builds the Presentation and how the Verifier checks it. A query without one has to be answered by guesswork on both sides. meta is REQUIRED even when empty so that asking for any credential of a format is something the Verifier wrote down, not something it forgot.

What non-compliance looks like

A Verifier sends {"id": "degree", "meta": {"vct_values": [...]}} and relies on the Wallet to infer dc+sd-jwt from vct_values. A Verifier leaves out meta because it has no constraint. A Verifier uses an id with a dot or a space, or repeats an id. A Verifier names a format Appendix B does not define, such as jwt_vc_json-ld.

How ProtocolSoup tests it

ValidateCredentialQueries in backend/internal/protocols/oid4vp/contracts.go runs when an Authorization Request is created. It requires credentials to be a non-empty array of objects, each with an id that matches the Section 6.1 character set and is unique in the request, a format this verifier verifies (dc+sd-jwt, mso_mdoc, jwt_vc_json or ldp_vc), and a meta object. For the W3C formats it also requires meta.type_values, as Appendix B.1.1 does. A request that fails any of these is refused with HTTP 400 invalid_request, so no request object carrying such a query is ever signed.

TestCreateAuthorizationRequestValidatesCredentialQueries posts create requests with an empty credentials array, an entry that is not an object, a query with no id, an empty id, an id with a character outside the set, a repeated id, no format, a format this verifier does not verify, no meta and a meta that is not an object, and asserts HTTP 400 for each. It asserts HTTP 201 for complete dc+sd-jwt and mso_mdoc queries and for an empty meta object. TestCreateAuthorizationRequestValidatesW3CCredentialQueries covers type_values and the refusal of jwt_vc_json-ld. These are checks on the request the Verifier writes. The Wallet's handling of a malformed query from another Verifier is not covered here.

Related requirements

All OID4VP 1.0 requirements · OID4VP protocol page