How does a verifier bind wallet_nonce when a wallet POSTs to request_uri?

request_uri_method=post binds wallet_nonce into the request objectOID4VP 1.0 §5.10.2MUSTRoles: verifier

Requirement as recorded in the ProtocolSoup registry

A request_uri_method=post endpoint binds wallet_nonce into the signed request object, permits exact repeated retrieval, and rejects a changed nonce.

Read §5.10.2 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 POSTs a wallet_nonce to a request_uri_method=post request_uri, then repeats the same POST. The first response must carry the nonce in the signed request object; the second must be byte-identical.

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

  1. 1.POST https://protocolsoup.com/oid4vp/request/KBwiYdOkYjfF3fMiENL4zhBp200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vp/request/KBwiYdOkYjfF3fMiENL4zhBp HTTP/2.0
    Accept: application/oauth-authz-req+jwt
    Content-Length: 49
    Content-Type: application/x-www-form-urlencoded
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    wallet_nonce=ad94529b-bcc2-4913-b831-4ec27711a227

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb5dd1b273cdb-MSP
    Content-Length: 1722
    Content-Type: application/oauth-authz-req+jwt
    Date: Sun, 06 Dec 2026 13:41:50 GMT
    Fly-Request-Id: 01M95SDSJ04R1H5ZEV1GXWDQD4-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=ZhDUhLSElT1RJGBDBuTh9oVku9f8l8cTN%2BmhGtnlOL%2FoN6%2F79%2FuZ3vmi2bAQ%2Beo%2Btzhe6PgEXR1QR6eBGFGv%2Fg1WuMxM73lmiPtqbA4cFO3HLwVm0Rv9E8DkyKx8PpBxgIM%3D"}]}
    Server: cloudflare
    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.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJjbGllbnRfbWV0YWRhdGEiOnsidnBfZm9ybWF0c19zdXBwb3J0ZWQiOnsiZGMrc2Qtand0Ijp7ImtiLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il0sInNkLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il19LCJqd3RfdmNfanNvbiI6eyJhbGdfdmFsdWVzIjpbIkVTMjU2IiwiUlMyNTYiLCJFZERTQSJdfSwibGRwX3ZjIjp7InByb29mX3R5cGVfdmFsdWVzIjpbIkRhdGFJbnRlZ3JpdHlQcm9vZiIsIkVkMjU1MTlTaWduYXR1cmUyMDIwIl19LCJtc29fbWRvYyI6eyJkZXZpY2VhdXRoX2FsZ192YWx1ZXMiOlstN10sImlzc3VlcmF1dGhfYWxnX3ZhbHVlcyI6Wy03XX19fSwiZGNxbF9xdWVyeSI6eyJjcmVkZW50aWFscyI6W3siZm9ybWF0IjoiZGMrc2Qtand0IiwiaWQiOiJkZWdyZWUiLCJtZXRhIjp7InZjdF92YWx1ZXMiOlsiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL2NyZWRlbnRpYWxzL3VuaXZlcnNpdHlfZGVncmVlIl19fV19LCJleHAiOjE3OTY1NjQ4MDksImlhdCI6MTc5NjU2NDUwOSwiaXNzIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJqdGkiOiJLQndpWWRPa1lqZkYzZk1pRU5MNHpoQnAiLCJub25jZSI6IklsZ1lPSG9NX1k3aGJGbUI0STFnVlJ3ZmhPTll3WHFUemJ1MlJlM2hmUzQiLCJyZXNwb25zZV9tb2RlIjoiZGlyZWN0X3Bvc3QiLCJyZXNwb25zZV90eXBlIjoidnBfdG9rZW4iLCJyZXNwb25zZV91cmkiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZwL3Jlc3BvbnNlIiwic3RhdGUiOiJhbFQ4Y1ZLeUlCempvVHpjcm02VlE2M0wiLCJ3YWxsZXRfbm9uY2UiOiJhZDk0NTI5Yi1iY2MyLTQ5MTMtYjgzMS00ZWMyNzcxMWEyMjcifQ.fPMjn9ww_bFICx7eHYdxzEG-hPs25Yfq89HqBend22zmTB8rvr0T4r1W0BV6CaLcmfmlBGi11KsDYf1F_2RLcAQLININ6o6RBhD0mWROtz0GroBtaPShvrk9WWN4x64Z8pAStzCB-ycacctUirIZfsrFrR6SSaK6zRXclqlBRNhXg_Goh7lKV0GY-ubZV2tWHdXAUtAbPEWagYebajvuDUvH4IMOLKP1r_kAcOic8EMHpYgZPEMC18QngVa0KEdEFw7MzviBnowFeqAB1wLMZFmogEOXPL7_2HZzj9qIHxOfjD8ceODtguvbjBhF7QyZsXWvwHoJtLakYRvJwEL_0g
  2. 2.POST https://protocolsoup.com/oid4vp/request/KBwiYdOkYjfF3fMiENL4zhBp200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vp/request/KBwiYdOkYjfF3fMiENL4zhBp HTTP/2.0
    Accept: application/oauth-authz-req+jwt
    Content-Length: 49
    Content-Type: application/x-www-form-urlencoded
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    wallet_nonce=ad94529b-bcc2-4913-b831-4ec27711a227

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb5e358ac3cdb-MSP
    Content-Length: 1722
    Content-Type: application/oauth-authz-req+jwt
    Date: Sun, 06 Dec 2026 13:41:51 GMT
    Fly-Request-Id: 01M95SDTH6C2QCZP5D7Y6R3YM1-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=cShauRMdp3W7ISuBakvzRxRfIOFDi4fPWwKSQZER1VucuedcSmEEAt4Lz0WF8m7EGlSHeBK0CplmQjeEw5DrIxKpFG5zQ9STj5x6nvuEXNPtlhhWHSxXq68PeyRVPVB10nE%3D"}]}
    Server: cloudflare
    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.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJjbGllbnRfbWV0YWRhdGEiOnsidnBfZm9ybWF0c19zdXBwb3J0ZWQiOnsiZGMrc2Qtand0Ijp7ImtiLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il0sInNkLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il19LCJqd3RfdmNfanNvbiI6eyJhbGdfd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ROtz0GroBtaPShvrk9WWN4x64Z8pAStzCB-ycacctUirIZfsrFrR6SSaK6zRXclqlBRNhXg_Goh7lKV0GY-ubZV2tWHdXAUtAbPEWagYebajvuDUvH4IMOLKP1r_kAcOic8EMHpYgZPEMC18QngVa0KEdEFw7MzviBnowFeqAB1wLMZFmogEOXPL7_2HZzj9qIHxOfjD8ceODtguvbjBhF7QyZsXWvwHoJtLakYRvJwEL_0g

Failing exchange

Rejected, as requiredConformance client

The conformance client binds one wallet_nonce, then POSTs a different wallet_nonce to the same request_uri.

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

  1. 1.POST https://protocolsoup.com/oid4vp/request/mD2vAkjDIFv9DWiObKKXqf1n200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vp/request/mD2vAkjDIFv9DWiObKKXqf1n HTTP/2.0
    Accept: application/oauth-authz-req+jwt
    Content-Length: 49
    Content-Type: application/x-www-form-urlencoded
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    wallet_nonce=e3a9d94f-f9da-4217-bbfb-bff935df9e60

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb5efebf83cdb-MSP
    Content-Length: 1722
    Content-Type: application/oauth-authz-req+jwt
    Date: Sun, 06 Dec 2026 13:41:53 GMT
    Fly-Request-Id: 01M95SDWFQQ9VZHSCDGXV413TE-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=X8sVJ82DB7RsrlRJ%2BkObvFAoYKSvJNl%2BNObafECMB5oZQkOsZfvLZkfU7qO7gK7IJECNdwsL6R4wGveMPLMmmhyGazKSqoA3WR8CgfUduBBEut7v%2BOUJOoBUyGaEKcFQ4Sc%3D"}]}
    Server: cloudflare
    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.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJjbGllbnRfbWV0YWRhdGEiOnsidnBfZm9ybWF0c19zdXBwb3J0ZWQiOnsiZGMrc2Qtand0Ijp7ImtiLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il0sInNkLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il19LCJqd3RfdmNfanNvbiI6eyJhbGdfdmFsdWVzIjpbIkVTMjU2IiwiUlMyNTYiLCJFZERTQSJdfSwibGRwX3ZjIjp7InByb29mX3R5cGVfdmFsdWVzIjpbIkRhdGFJbnRlZ3JpdHlQcm9vZiIsIkVkMjU1MTlTaWduYXR1cmUyMDIwIl19LCJtc29fbWRvYyI6eyJkZXZpY2VhdXRoX2FsZ192YWx1ZXMiOlstN10sImlzc3VlcmF1dGhfYWxnX3ZhbHVlcyI6Wy03XX19fSwiZGNxbF9xdWVyeSI6eyJjcmVkZW50aWFscyI6W3siZm9ybWF0IjoiZGMrc2Qtand0IiwiaWQiOiJkZWdyZWUiLCJtZXRhIjp7InZjdF92YWx1ZXMiOlsiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL2NyZWRlbnRpYWxzL3VuaXZlcnNpdHlfZGVncmVlIl19fV19LCJleHAiOjE3OTY1NjQ4MTIsImlhdCI6MTc5NjU2NDUxMiwiaXNzIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJqdGkiOiJtRDJ2QWtqRElGdjlEV2lPYktLWHFmMW4iLCJub25jZSI6IlgxT01fcFVieW5VY18yekdYNlgtYWFzNzlNcnVfZ1lWSF9MXzlOYWRLV1kiLCJyZXNwb25zZV9tb2RlIjoiZGlyZWN0X3Bvc3QiLCJyZXNwb25zZV90eXBlIjoidnBfdG9rZW4iLCJyZXNwb25zZV91cmkiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZwL3Jlc3BvbnNlIiwic3RhdGUiOiI2RW5LT3FCdDVHLV9kTEFHVER1aTZhUTciLCJ3YWxsZXRfbm9uY2UiOiJlM2E5ZDk0Zi1mOWRhLTQyMTctYmJmYi1iZmY5MzVkZjllNjAifQ.Iw6Jhskc97ttM9tkOTerdNK8fySIywXt2CaLzeBJ5KlbDo5HFw49ro36Sxvy7WXjJe4IaJpy3nHl26TBXyRNlIliMivplVEI61GzR4ZpbQCGtv90-L8yCzEHFoHLJxISIkHN42JCxqQ6VE6ksWT73Nr-Wh_-0OQpj02BMj6WaXdATiEgDeMAvRg6tyaRamudz4QseJoyzyEAA0ll7T1OeFl1xtfsqXWlw7xB3xTSrDz-ZMvKAaHys_abTCfhjgveqQB6xzi5QrbNxDpT78YLcEUc0ZnSnJeIFA1jm870aPRV6YUneupYfx9plohCDQPIhsVC9p9bXMWHw7g02z1eoQ
  2. 2.POST https://protocolsoup.com/oid4vp/request/mD2vAkjDIFv9DWiObKKXqf1n400 Bad Request

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vp/request/mD2vAkjDIFv9DWiObKKXqf1n HTTP/2.0
    Accept: application/oauth-authz-req+jwt
    Content-Length: 49
    Content-Type: application/x-www-form-urlencoded
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    wallet_nonce=0adfe9a5-0d12-40ba-9be3-87775bd07928

    Response

    HTTP/2.0 400 Bad Request
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb5f61a8d3cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:41:54 GMT
    Fly-Request-Id: 01M95SDXEYZAKPEHJVGE64GYJ4-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    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=gqGWvv7Za8fCD0pPi4Ye5ASQM0Ix93oNMiVurorfPRIwSPzshI4TqzJ5t2CTJXS%2FrNL4kr77G%2BT3I2sIDQvdjLJZ1jjzoAhEq4lVwyGy%2Bq%2BQOnDijn4MNzQTlojEHgCuZFY%3D"}]}
    Server: cloudflare
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"error":"invalid_request","error_description":"wallet_nonce does not match the first request"}
    

Tests

Implementation

Explainer

What this requires

With request_uri_method=post, the wallet fetches the Request Object by POSTing to the request_uri, optionally sending wallet_metadata and wallet_nonce. Section 5.10 defines wallet_nonce and says "When received, the Verifier MUST use it as the wallet_nonce value in the signed authorization request object." The nonce has to sit inside the signed claims, so the verifier signs the object after adding it. Section 5.10.1 sets the wallet's side: "if the Wallet passed a wallet_nonce in the POST request, the Wallet MUST validate whether the request object contains the respective nonce value in a wallet_nonce claim. If it does not, the Wallet MUST terminate request processing."

Serving the identical object for a repeated POST with the same nonce, and refusing a different nonce, are ProtocolSoup's choices; the spec does not require either. The section this row cites, 5.10.2, covers what happens next: "If the Verifier responds with any HTTP error response, the Wallet MUST terminate the process."

Why it exists

Section 5.10 gives the purpose of the parameter: wallet_nonce is "A string value used to mitigate replay attacks of the Authorization Request." A Request Object signed with a nonce the wallet chose a moment earlier cannot be one captured from another exchange and replayed. ProtocolSoup binds the first nonce it receives so that one request session belongs to one retrieval. A second party that POSTs a different nonce cannot obtain a freshly signed copy of the same request, carrying the same state and nonce, for itself.

What non-compliance looks like

A verifier returns the object it signed at creation time, without wallet_nonce, and a conformant wallet terminates. A verifier adds wallet_nonce to an object it does not sign again, so the signature no longer verifies. A verifier signs again on every POST with whatever nonce arrives, so the same request session can be bound to any number of wallets.

How ProtocolSoup tests it

handlePostAuthorizationRequest (backend/internal/protocols/oid4vp/handlers.go) accepts POST only for requests created with request_uri_method=post. Otherwise it returns 405 invalid_request with Allow: GET, and a GET to a POST-only request returns 405 invalid_request with Allow: POST. Section 5.10 makes wallet_nonce OPTIONAL, so a POST without one is answered with the stored request object and binds nothing; a later POST may still bind a nonce. A supplied nonce may be at most 256 characters. If wallet_metadata is present, it must be a JSON object of at most 32 KiB. On the first valid POST the handler adds wallet_nonce to the stored claims, signs the object again under the same Client Identifier Prefix, and stores it. A POST with the same nonce returns those exact bytes. A different nonce, or none, after binding fails with 400 invalid_request and wallet_nonce does not match the first request. Successful responses carry Content-Type: application/oauth-authz-req+jwt and Cache-Control: no-store.

TestAuthorizationRequestPOSTBindsWalletNonceAndIsSafelyRepeatable creates a request with request_uri_method=post and asserts that GET returns 405. It then POSTs wallet_nonce=wallet-nonce-123 and asserts 200 and a wallet_nonce claim with that value, asserts that a second POST with the same nonce returns byte-identical content, and asserts that a different nonce returns 400. The test decodes the object without verifying its signature, so it shows the claim is present but not that the new signature covers it, and it does not check the response media type. TestAuthorizationRequestPOSTWithoutWalletNonce POSTs without a nonce and asserts 200, Content-Type: application/oauth-authz-req+jwt, no wallet_nonce claim, and identical bytes on a repeat. It then asserts that a later nonce still binds, and that a nonceless POST after binding returns 400.

Related requirements

All OID4VP 1.0 requirements · OID4VP protocol page