Does the OID4VCI Nonce Endpoint require an access token?
Nonce endpoint issues a fresh c_nonce without authorizationOID4VCI 1.0 §7MUSTRoles: issuer
Requirement as recorded in the ProtocolSoup registry
The Nonce Endpoint MUST issue a fresh c_nonce without requiring an access token or other authorization.
Read §7 in OID4VCI 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
Accepted, as requiredConformance client
The conformance client sends two POST requests to /oid4vci/nonce with no Authorization header, no DPoP header and no body, and checks that each answer carries a different c_nonce and Cache-Control: no-store.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.POST https://protocolsoup.com/oid4vci/nonce200 OK
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oid4vci/nonce HTTP/2.0 Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1
Response
HTTP/2.0 200 OK Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65b9169dcc51425-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:16:57 GMT Fly-Request-Id: 01M95R07HM4TB8HHYZAHWHT58W-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=VuBY0hx1es44ILuSS6hW8ynpauyjtU3ZaNbCExRXDJxfQbavhK33alR1EJ%2BPBsjIqRJOCftXhtnZPSlNzQFF5%2FigZHuTZ%2Frhboq3x5ygYBluA%2BqT0Al6%2B%2BVF2yt3PAlpgcw%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=205 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 {"c_nonce":"vHU7NLJao6xcpFRfiZirKj1U","c_nonce_expires_in":300}2.POST https://protocolsoup.com/oid4vci/nonce200 OK
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oid4vci/nonce HTTP/2.0 Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1
Response
HTTP/2.0 200 OK Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65b917018621425-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:16:58 GMT Fly-Request-Id: 01M95R08HD7X0CSKBP09P5ER92-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=1XNai5%2B%2FP%2Fv1%2BRLhxw%2FGIvUtg%2BEbcvHN2kwAT1VA3v04Q8oZNZ7TY%2BWl9sdm3JkiyC4C53F1RYtXhAjYwicIT2mwcecMmXGnQLO03dnHw%2FBirPpWfhZZq2vlZ4lcx8cUoK0%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=21,cfOrigin;dur=204 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 {"c_nonce":"gX_qIyUQWqoeIsgLsESlCXMQ","c_nonce_expires_in":300}
Failing exchange
Not captured: A conformant Nonce Endpoint answers every POST without authorization, so there is no request it must reject under this requirement.
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 GlassTests
- TestNonceEndpointIsPublicWithIrrelevantAuthHeaders
./internal/protocols/oid4vci
Pass
Implementation
Explainer
What this requires
OID4VCI 1.0 Section 7.1 says "The Nonce Endpoint is not a protected resource, meaning the Wallet does not need to supply an access token to access it." Section 7.2 sets the rules for the value and the response: c_nonce is REQUIRED, "New challenge values MUST be unpredictable", and "the Credential Issuer MUST make the response uncacheable by adding a Cache-Control header field including the value no-store."
The registry statement adds "MUST" to the access token rule. The wording in Section 7.1 itself is the descriptive sentence quoted above.
Why it exists
The specification does not give a reason for leaving the endpoint unprotected. The concrete effect is that a Wallet can obtain a nonce with one plain POST. An issuer that put the endpoint behind token checks would reject Wallets that follow Section 7.1 and send no token. With DPoP-bound tokens, it would also add DPoP proof and nonce handling to a step that only exists to hand out a challenge.
What non-compliance looks like
The issuer returns HTTP 401 invalid_token to a nonce request that has no Authorization header. Or the issuer runs the request through its resource-server middleware, so a stale or duplicated DPoP header breaks nonce acquisition. On the value side, an issuer that returns counters or timestamps as nonces, or lets the response be cached, fails Section 7.2.
How ProtocolSoup tests it
handleNonce in handlers.go does not call the access-token or DPoP checks used by the Credential, Deferred Credential and Notification endpoints. It draws a 24-character value from crypto/rand, records it with a five-minute expiry, emits a "Credential Nonce Issued" Looking Glass event, and returns HTTP 200 JSON with Cache-Control: no-store. The body also carries c_nonce_expires_in, which Section 7.2 does not define.
TestNonceEndpointIsPublicWithIrrelevantAuthHeaders obtains a DPoP-bound access token, then POSTs to /oid4vci/nonce with Authorization: DPoP and two DPoP header fields. A protected endpoint would reject that request under RFC 9449 Section 4.3. The test asserts HTTP 200 and a non-empty c_nonce. It does not send a request with no headers at all, and it does not check that two calls return different values or that Cache-Control is set.