What may a wallet do when a client_id has a Client Identifier Prefix it does not recognise?
Handling of an unrecognized client identifier prefixOID4VP 1.0 §5.9.2MAYRoles: wallet
Requirement as recorded in the ProtocolSoup registry
If a ":" character is present in the Client Identifier but the value preceding it is not a recognized and supported Client Identifier Prefix value, the Wallet can treat the Client Identifier as referring to a pre-registered client or it may refuse the request.
Read §5.9.2 in OID4VP 1.0Self-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
Not captured: The hosted wallet takes the refusal option Section 5.9.2 allows, so it accepts no request whose client_id carries an unrecognised Client Identifier Prefix.
Failing exchange
Rejected, as requiredConformance counterparty
The conformance client asks the hosted wallet to resolve a counterparty request_uri whose signed request object carries client_id unregistered_prefix:..., a Client Identifier Prefix the wallet does not recognise. The wallet refuses the request rather than treating the identifier as pre-registered.
Messages from a deliberately broken conformance counterparty, to show how the hosted wallet refuses them.
1.POST https://wallet.protocolsoup.com/api/resolve400 Bad Request
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /api/resolve HTTP/2.0 Accept: application/json Content-Length: 84 Content-Type: application/json Host: wallet.protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 X-Wallet-Session: conformance-b7798ed7-3900-456b-9299-be0badf66b70 {"request_uri":"https://protocolsoup-counterparty.fly.dev/scenarios/vp-002/request"}Response
HTTP/2.0 400 Bad Request Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65bb43a69ee9bd0-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:40:43 GMT Fly-Request-Id: 01M95SBR4MZ4A62AMX7Z1175XT-ord Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} Pragma: no-cache Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=E9TU0rXiJguDwx%2FVgXOVxkIj%2B7YwSoRu4le0jakrXkMbpo6Su5WzKh45lfrN15dOjxtz3Vcwqu7m2sy%2FHS0jvsPALCulgHps3SZrbMq2CeJsbtncDfZZRQYZvhR8B2zV4OiOsj8wmG0w"}]} Server: cloudflare Vary: accept-encoding Via: 1.1 fly.io, 1.1 fly.io {"_protocol_exchanges":[{"step":"Fetch Request Object","rfc_reference":"RFC 9101 Section 5.2.3","method":"GET","url":"https://protocolsoup-counterparty.fly.dev/scenarios/vp-002/request","request_headers":{"Accept":"application/oauth-authz-req+jwt"},"response_status":200,"response_headers":{"Cache-Control":"no-store","Content-Length":"1383","Content-Type":"application/oauth-authz-req+jwt","Date":"Sun, 06 Dec 2026 13:40:43 GMT","Fly-Request-Id":"01M95SBRDS2MHQZVX01SP179EH-syd","Server":"Fly/9bb2ac9a88 (2026-11-23)","Via":"2 fly.io","X-Conformance-Counterparty":"ProtocolSoup conformance counterparty: serves deliberately invalid protocol messages for conformance capture. Do not use as an issuer or verifier.","X-Robots-Tag":"noindex, nofollow"},"response_body":"eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6cHJvdG9jb2xzb3VwLWNvdW50ZXJwYXJ0eS5mbHkuZGV2OnNjZW5hcmlvczp2cC0wMDIjcmVxdWVzdC1zaWduaW5nIiwidHlwIjoib2F1dGgtYXV0aHotcmVxK2p3dCJ9.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoidW5yZWdpc3RlcmVkX3ByZWZpeDpodHRwczovL3Byb3RvY29sc291cC1jb3VudGVycGFydHkuZmx5LmRldi9zY2VuYXJpb3MvdnAtMDAyIiwiY2xpZW50X21ldGFkYXRhIjp7ImNsaWVudF9uYW1lIjoiUHJvdG9jb2xTb3VwIENvbmZvcm1hbmNlIENvdW50ZXJwYXJ0eSIsInZwX2Zvcm1hdHNfc3VwcG9ydGVkIjp7ImRjK3NkLWp3dCI6eyJrYi1qd3RfYWxnX3ZhbHVlcyI6WyJFUzI1NiJdLCJzZC1qd3RfYWxnX3ZhbHVlcyI6WyJFUzI1NiJdfX19LCJkY3FsX3F1ZXJ5Ijp7ImNyZWRlbnRpYWxzIjpbeyJmb3JtYXQiOiJkYytzZC1qd3QiLCJpZCI6ImRlZ3JlZSIsIm1ldGEiOnsidmN0X3ZhbHVlcyI6WyJodHRwczovL3Byb3RvY29sc291cC5jb20vY3JlZGVudGlhbHMvdW5pdmVyc2l0eV9kZWdyZWUiXX19XX0sImV4cCI6MTc5NjU2NDc0MywiaWF0IjoxNzk2NTY0NDQzLCJpc3MiOiJkZWNlbnRyYWxpemVkX2lkZW50aWZpZXI6ZGlkOndlYjpwcm90b2NvbHNvdXAtY291bnRlcnBhcnR5LmZseS5kZXY6c2NlbmFyaW9zOnZwLTAwMiIsImp0aSI6ImdCMWVVWTRzSDBjTFZhVkRPN1NzN042Nnozbm8yd1NlIiwibm9uY2UiOiJsbmg2bzJkMDJUTzViM3JuR1JpUkRHV0g1SmNKOXRwNCIsInJlc3BvbnNlX21vZGUiOiJkaXJlY3RfcG9zdCIsInJlc3BvbnNlX3R5cGUiOiJ2cF90b2tlbiIsInJlc3BvbnNlX3VyaSI6Imh0dHBzOi8vcHJvdG9jb2xzb3VwLWNvdW50ZXJwYXJ0eS5mbHkuZGV2L3NjZW5hcmlvcy92cC0wMDIvcmVzcG9uc2UiLCJzdGF0ZSI6ImxsTFNfTkpOd2FpNXVWQUdpOHZjVXV0bFdLUEQ2TS1qIn0.YF7A1h1goRUGgkvTbktOSF8n7ZRxk56StKWpUedeF8abdOwSU3dfBWC55rBceeqqZpiU81c9eiXBP-CugSbnBw","duration_ms":3,"actor":"wallet→verifier"}],"error":"invalid_request","error_description":"unsupported client_id scheme prefix in \"unregistered_prefix:https://protocolsoup-counterparty.fly.dev/scenarios/vp-002\""}2.GET https://protocolsoup-counterparty.fly.dev/scenarios/vp-002/request200 OK
Recorded by the hosted wallet: its own record of a request it sent, returned in the response above.
Request
Accept: application/oauth-authz-req+jwt
No bytes captured.
Response
Cache-Control: no-store Content-Length: 1383 Content-Type: application/oauth-authz-req+jwt Date: Sun, 06 Dec 2026 13:40:43 GMT Fly-Request-Id: 01M95SBRDS2MHQZVX01SP179EH-syd Server: Fly/9bb2ac9a88 (2026-11-23) Via: 2 fly.io X-Conformance-Counterparty: ProtocolSoup conformance counterparty: serves deliberately invalid protocol messages for conformance capture. Do not use as an issuer or verifier. X-Robots-Tag: noindex, nofollow
eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6cHJvdG9jb2xzb3VwLWNvdW50ZXJwYXJ0eS5mbHkuZGV2OnNjZW5hcmlvczp2cC0wMDIjcmVxdWVzdC1zaWduaW5nIiwidHlwIjoib2F1dGgtYXV0aHotcmVxK2p3dCJ9.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoidW5yZWdpc3RlcmVkX3ByZWZpeDpodHRwczovL3Byb3RvY29sc291cC1jb3VudGVycGFydHkuZmx5LmRldi9zY2VuYXJpb3MvdnAtMDAyIiwiY2xpZW50X21ldGFkYXRhIjp7ImNsaWVudF9uYW1lIjoiUHJvdG9jb2xTb3VwIENvbmZvcm1hbmNlIENvdW50ZXJwYXJ0eSIsInZwX2Zvcm1hdHNfc3VwcG9ydGVkIjp7ImRjK3NkLWp3dCI6eyJrYi1qd3RfYWxnX3ZhbHVlcyI6WyJFUzI1NiJdLCJzZC1qd3RfYWxnX3ZhbHVlcyI6WyJFUzI1NiJdfX19LCJkY3FsX3F1ZXJ5Ijp7ImNyZWRlbnRpYWxzIjpbeyJmb3JtYXQiOiJkYytzZC1qd3QiLCJpZCI6ImRlZ3JlZSIsIm1ldGEiOnsidmN0X3ZhbHVlcyI6WyJodHRwczovL3Byb3RvY29sc291cC5jb20vY3JlZGVudGlhbHMvdW5pdmVyc2l0eV9kZWdyZWUiXX19XX0sImV4cCI6MTc5NjU2NDc0MywiaWF0IjoxNzk2NTY0NDQzLCJpc3MiOiJkZWNlbnRyYWxpemVkX2lkZW50aWZpZXI6ZGlkOndlYjpwcm90b2NvbHNvdXAtY291bnRlcnBhcnR5LmZseS5kZXY6c2NlbmFyaW9zOnZwLTAwMiIsImp0aSI6ImdCMWVVWTRzSDBjTFZhVkRPN1NzN042Nnozbm8yd1NlIiwibm9uY2UiOiJsbmg2bzJkMDJUTzViM3JuR1JpUkRHV0g1SmNKOXRwNCIsInJlc3BvbnNlX21vZGUiOiJkaXJlY3RfcG9zdCIsInJlc3BvbnNlX3R5cGUiOiJ2cF90b2tlbiIsInJlc3BvbnNlX3VyaSI6Imh0dHBzOi8vcHJvdG9jb2xzb3VwLWNvdW50ZXJwYXJ0eS5mbHkuZGV2L3NjZW5hcmlvcy92cC0wMDIvcmVzcG9uc2UiLCJzdGF0ZSI6ImxsTFNfTkpOd2FpNXVWQUdpOHZjVXV0bFdLUEQ2TS1qIn0.YF7A1h1goRUGgkvTbktOSF8n7ZRxk56StKWpUedeF8abdOwSU3dfBWC55rBceeqqZpiU81c9eiXBP-CugSbnBw
Tests
- TestParseClientIDSchemeUsesFinalPrefixFallback
./internal/protocols/oid4vp
Pass
Implementation
Explainer
What this requires
Section 5.9.2 gives the wallet two options when the text before the first colon is not a Client Identifier Prefix it recognises and supports: "the Wallet can treat the Client Identifier as referring to a pre-registered client or it may refuse the request." Either is conformant. If the wallet falls back, the whole value, colon included, is the pre-registered identifier it looks up.
The same section draws the consequence for pre-registration: "pre-registered clients MUST NOT contain a : character preceded immediately by a supported Client Identifier Prefix value in the first part of their Client Identifier." One prefix is not open to the fallback. Section 5.9.3 reserves origin for the Digital Credentials API and says "The Wallet MUST NOT accept this Client Identifier Prefix in requests."
Why it exists
The set of prefixes is open: Section 5.9.3 says "Other specifications can define further Client Identifier Prefixes." A wallet will therefore meet prefixes it does not implement. Many ordinary identifiers also contain a colon, such as https://verifier.example or did:web:verifier.example. The fallback keeps those working as pre-registered clients, and refusal is the conservative choice for a wallet that wants no ambiguity.
What non-compliance looks like
The faults lie outside the two permitted options. A wallet that guesses the meaning of an unknown prefix, for example by treating it like redirect_uri, applies trust rules the verifier never asked for. A wallet that strips the unknown prefix and looks up only the remainder breaks Section 14.8, which says "Wallets MUST always use the full Client Identifier, including the prefix if provided". A wallet that falls back to pre-registered for origin: accepts a prefix it MUST NOT accept.
How ProtocolSoup tests it
The two ProtocolSoup components choose differently. The hosted wallet (inferClientIDScheme in backend/cmd/walletharness/main.go) refuses: any name, colon, rest value whose name is not one of the six defined prefixes is classified as unknown, and the request is rejected with unsupported client_id scheme prefix. That includes origin:. The exceptions are values starting with http, https or did followed by a colon, which it treats as pre-registered. openid_federation is recognised but not supported, and the wallet refuses it at signature verification with client_id_scheme "openid_federation" is not yet supported by the wallet.
The verifier's ParseClientIDScheme (backend/internal/protocols/oid4vp/contracts.go) takes the fallback and classifies an unrecognised prefix as pre_registered. Pre-registered is not in the verifier's supported set, so its create endpoint rejects such a client_id with invalid_client. TestParseClientIDSchemeUsesFinalPrefixFallback asserts the fallback: origin:https://verifier.example, :example-client and redirect_uri :https://verifier.example all parse as pre_registered. This test covers the verifier's parser, not the wallet. The wallet's refusal is asserted by the invalid_scheme:attacker case in TestInferClientIDSchemeUsesClientIDPrefixOnly, which is not linked to this requirement.