Which fields must an OpenID4VP verifier publish in vp_formats_supported?

Verifier metadata per-format fields and numeric COSE identifiersOID4VP 1.0 §11.1MUSTRoles: verifier

Requirement as recorded in the ProtocolSoup registry

Verifier metadata uses the Final per-format fields and numeric COSE algorithm identifiers for mso_mdoc.

Read §11.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 of a request created without its own client_metadata. Its client_metadata.vp_formats_supported must use the OpenID4VP 1.0 Appendix B parameter names, sd-jwt_alg_values and kb-jwt_alg_values for dc+sd-jwt and issuerauth_alg_values and deviceauth_alg_values for mso_mdoc, with integer COSE algorithm identifiers for mso_mdoc.

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/TXgwciDQgVpXhGRI3GgT6QR-200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    GET /oid4vp/request/TXgwciDQgVpXhGRI3GgT6QR- 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: a65bb5d09e6f3cdb-MSP
    Content-Length: 1650
    Content-Type: application/oauth-authz-req+jwt
    Date: Sun, 06 Dec 2026 13:41:48 GMT
    Fly-Request-Id: 01M95SDQKEZ6BGT34N4AZPXMEW-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=ce4toeemKPepbhFw6ZlKdFI0%2FLizSEH1%2FVHJtxJ3ZpWP766ndDTNVWzL9n%2F3mxyO2e%2BywDxrXU9QfgPI6LoO7JhUhKioEYpy8zTPy0zwjJ%2BN%2FH3c%2FzQ0u1pDvnSJltf%2F80s%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.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJjbGllbnRfbWV0YWRhdGEiOnsidnBfZm9ybWF0c19zdXBwb3J0ZWQiOnsiZGMrc2Qtand0Ijp7ImtiLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il0sInNkLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il19LCJqd3RfdmNfanNvbiI6eyJhbGdfdmFsdWVzIjpbIkVTMjU2IiwiUlMyNTYiLCJFZERTQSJdfSwibGRwX3ZjIjp7InByb29mX3R5cGVfdmFsdWVzIjpbIkRhdGFJbnRlZ3JpdHlQcm9vZiIsIkVkMjU1MTlTaWduYXR1cmUyMDIwIl19LCJtc29fbWRvYyI6eyJkZXZpY2VhdXRoX2FsZ192YWx1ZXMiOlstN10sImlzc3VlcmF1dGhfYWxnX3ZhbHVlcyI6Wy03XX19fSwiZGNxbF9xdWVyeSI6eyJjcmVkZW50aWFscyI6W3siZm9ybWF0IjoiZGMrc2Qtand0IiwiaWQiOiJkZWdyZWUiLCJtZXRhIjp7InZjdF92YWx1ZXMiOlsiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL2NyZWRlbnRpYWxzL3VuaXZlcnNpdHlfZGVncmVlIl19fV19LCJleHAiOjE3OTY1NjQ4MDcsImlhdCI6MTc5NjU2NDUwNywiaXNzIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJqdGkiOiJUWGd3Y2lEUWdWcFhoR1JJM0dnVDZRUi0iLCJub25jZSI6ImphSW1rYVlvOEVZTUtfUGNKYl9KeDBnUTJSN2JIellYYXhwcVdpUngwWlUiLCJyZXNwb25zZV9tb2RlIjoiZGlyZWN0X3Bvc3QiLCJyZXNwb25zZV90eXBlIjoidnBfdG9rZW4iLCJyZXNwb25zZV91cmkiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZwL3Jlc3BvbnNlIiwic3RhdGUiOiIzdWdOa3FZc09LNm1qLUlLZGFzWXQ4eWUifQ.JxrKDAaXStEh8jqrxDP1Dktw5h2mxFehlQwZ4vcJpzpgZ2x1QZdI0EqwdLDmPCDkJxvSSnlbhjSqJQX5XiDpIwp4G1KBU1uZnyoRnvPDWSzUaw0wnGFQXdx3zkdoZAfGp_Flg8t4S-xbQPuKfk36P2e85jO3TuobTW7Vr3kC6ZzG5dhSdxaelIb2ceEWyjZb1qXQJMVs_a3Xhy1b1EaZKlkKKo9bk0cdYdP0Bugz1kKz1sMvBrh00DroS1sAX1lZvspVHm_gRkeoLfgJvzp8O0R2R9JHezJzGbNVMlOO71xEqCti42mE_HINefuiArm_BW0w9wPU3DeZBYncSwZttQ

Failing exchange

Not captured: vp_formats_supported is metadata the verifier publishes about itself, and OpenID4VP defines no wallet or client request that could make it wrong, 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

Section 11.1 defines vp_formats_supported as "An object containing a list of name/value pairs, where the name is a Credential Format Identifier and the value defines format-specific parameters that a Verifier supports. For specific values that can be used, see Appendix B." The registry sentence is ProtocolSoup's summary rather than spec text. It means using the parameter names Appendix B defines for each format: sd-jwt_alg_values and kb-jwt_alg_values for dc+sd-jwt (B.3.4), issuerauth_alg_values and deviceauth_alg_values for mso_mdoc (B.2.2), alg_values for jwt_vc_json (B.1.3.1.3), and proof_type_values and cryptosuite_values for ldp_vc (B.1.3.2.3).

For mso_mdoc the values are COSE algorithm identifiers, which are integers. Appendix B.2.2 works through an example in which an IssuerAuth "alg header with value -7 (which stands for ECDSA with SHA-256 in [IANA.COSE])" matches an issuerauth_alg_values element of -7.

Why it exists

An mdoc is a COSE structure, and its IssuerAuth and DeviceAuth headers carry integer alg values. Appendix B.2.2 matches the metadata against those headers, so the JOSE name ES256 never equals the integer -7 and the constraint cannot be evaluated. Field names matter in the same way, because Section 11.1 also says "The Wallet MUST ignore any unrecognized parameters." A misnamed field is not an error. It is dropped, and the wallet sees no algorithm constraint at all.

What non-compliance looks like

A verifier publishes "mso_mdoc": {"issuerauth_alg_values": ["ES256"]}, so no IssuerAuth header can match the string. Or it publishes a field name OpenID4VP 1.0 does not define, such as alg_values_supported, which a 1.0 wallet ignores, so the verifier's algorithm policy never reaches the wallet.

How ProtocolSoup tests it

defaultVPFormatsSupported (backend/internal/protocols/oid4vp/handlers.go) fills client_metadata.vp_formats_supported when the create request does not supply its own value. The same map is published in the verifier_attestation metadata document. It sets sd-jwt_alg_values and kb-jwt_alg_values to ["ES256"] for dc+sd-jwt, and issuerauth_alg_values and deviceauth_alg_values to [-7] for mso_mdoc. For the W3C formats it uses the 1.0 names: alg_values (ES256, RS256, EdDSA) for jwt_vc_json, as Appendix B.1.3.1.3 defines, and proof_type_values (DataIntegrityProof, Ed25519Signature2020) for ldp_vc, as B.1.3.2.3 defines. jwt_vc_json-ld has no entry: it is a Credential Format Identifier of OpenID4VCI 1.0, and OpenID4VP 1.0 Appendix B defines none by that name. The W3C values are enforced as well as published. B.1.3.1.3 says of alg_values "If present, the alg JOSE header (as defined in [RFC7515]) of the presented Verifiable Credential or Verifiable Presentation MUST match one of the array values", and B.1.3.2.3 says the same of the proof type and cryptosuite, so vc.CheckW3CVPFormatsSupported refuses a presentation outside the lists the request sent with vp_format_unsupported, and the hosted wallet runs the same check before it sends one.

TestRequestObjectContainsClientMetadataWithVPFormats decodes a created request object. It asserts that client_metadata.vp_formats_supported is present, that it has keys for dc+sd-jwt, jwt_vc_json and ldp_vc and none for jwt_vc_json-ld, and that the mso_mdoc entry's issuerauth_alg_values and deviceauth_alg_values are each exactly the number -7. It also asserts that jwt_vc_json carries only a non-empty alg_values and that ldp_vc carries only proof_type_values, holding DataIntegrityProof and Ed25519Signature2020, so a draft *_supported name would fail the test. TestCheckW3CVPFormatsSupported covers the matching rule on its own, TestW3CPresentationMustUseAnAlgorithmTheVerifierListed asserts that the verifier denies a presentation whose algorithm the request did not list, and TestCreateVPTokenRefusesAlgorithmTheVerifierDoesNotList asserts the wallet's refusal.

Related requirements

All OID4VP 1.0 requirements · OID4VP protocol page

Which fields must an OpenID4VP verifier publish in vp_formats_supported? · OID4VP 1.0 §11.1 | ProtocolSoup