How must an OID4VCI Credential Issuer handle notification requests?

Notification validation, idempotent retry and access token bindingOID4VCI 1.0 §11MUSTRoles: issuer

Requirement as recorded in the ProtocolSoup registry

The Credential Issuer validates the notification_id and event, accepts an exact retry idempotently, and binds the notification to the access token used for issuance.

Read §11 in OID4VCI 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 sends /oid4vci/notification a credential_accepted event for the notification_id its Credential Response returned, with the Access Token that obtained the Credential, then sends the identical request again as a Wallet retrying after a network error would.

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

  1. 1.POST https://protocolsoup.com/oid4vci/notification204 No Content

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vci/notification HTTP/2.0
    Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImNyZWRlbnRpYWxfY29uZmlndXJhdGlvbl9pZHMiOlsiVW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWxTREpXVCJdLCJleHAiOjE3OTY1NjMyNjMsImlhdCI6MTc5NjU2Mjk2MywiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29pZDR2Y2kiLCJqdGkiOiJqdGktZGE1NTg1YjI3ZDYyYWM2ZSIsIm5iZiI6MTc5NjU2Mjk2Mywib2ZmZXJfaWQiOiJtcjZvSmZ2TWdyV2t2V3lNVmlQdHZIVDYiLCJzY29wZSI6InZjOmlzc3VlIiwic3ViIjoid2FsbGV0Om1yNm9KZnZNZ3JXa3ZXeU1WaVB0dkhUNiJ9.ekTJDEdxcP1J6ismJOABceiKpSEmCQSzJ84GU4GK0XpT9I5DdiKxab1XyiZQhNFCykWxrk-mA_tNsWYN9uxh2Ws7JtibUeyMdYiqezclzsD-rGoPPWNP6APuxRNiBszFX8zB5w8sNvXAT_aqJw9LuRwND6fvBHP4j8mlMGUw7C4zZCTLy7r7Lh-zhAUdNMrJTRYipcC_6jEjLdB7De45g-tAWRBgSUCV8ql6NekRgVfOXkHLKmOgnoaXLOvUpAcWkUpjKE2py1u4Jdqny5weqQk1azxOx5oPuXvdUclLkij4OQtkYYDZHBaswR4Bl6pBsKkUK_i2c2neKD6eLH1V0w
    Content-Length: 84
    Content-Type: application/json
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    {"event":"credential_accepted","notification_id":"Q9ifGB0it7OAREv_FOg7dVA_wzc5508J"}

    Response

    HTTP/2.0 204 No Content
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b902b1e9d1425-MSP
    Date: Sun, 06 Dec 2026 13:16:06 GMT
    Fly-Request-Id: 01M95QYNR79VS1G9KZ84DFKET1-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=qBKTUfDxCqiX%2F8bgO0nopsHJMpjRMTkwnefwP56pOKsg5NTllhcIkEnsB8UgdlYoGvQUPjMQ72wdkeoAxBx%2FsA0M4rrSmZNnHFL1KKQn%2BQevTyWa%2FvJKqI7CqeC0nP4%2BYq8%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=15,cfOrigin;dur=208
    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
    
    
  2. 2.POST https://protocolsoup.com/oid4vci/notification204 No Content

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vci/notification HTTP/2.0
    Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImNyZWRlbnRpYWxfY29uZmlndXJhdGlvbl9pZHMiOlsiVW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWxTREpXVCJdLCJleHAiOjE3OTY1NjMyNjMsImlhdCI6MTc5NjU2Mjk2MywiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29pZDR2Y2kiLCJqdGkiOiJqdGktZGE1NTg1YjI3ZDYyYWM2ZSIsIm5iZiI6MTc5NjU2Mjk2Mywib2ZmZXJfaWQiOiJtcjZvSmZ2TWdyV2t2V3lNVmlQdHZIVDYiLCJzY29wZSI6InZjOmlzc3VlIiwic3ViIjoid2FsbGV0Om1yNm9KZnZNZ3JXa3ZXeU1WaVB0dkhUNiJ9.ekTJDEdxcP1J6ismJOABceiKpSEmCQSzJ84GU4GK0XpT9I5DdiKxab1XyiZQhNFCykWxrk-mA_tNsWYN9uxh2Ws7JtibUeyMdYiqezclzsD-rGoPPWNP6APuxRNiBszFX8zB5w8sNvXAT_aqJw9LuRwND6fvBHP4j8mlMGUw7C4zZCTLy7r7Lh-zhAUdNMrJTRYipcC_6jEjLdB7De45g-tAWRBgSUCV8ql6NekRgVfOXkHLKmOgnoaXLOvUpAcWkUpjKE2py1u4Jdqny5weqQk1azxOx5oPuXvdUclLkij4OQtkYYDZHBaswR4Bl6pBsKkUK_i2c2neKD6eLH1V0w
    Content-Length: 84
    Content-Type: application/json
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    {"event":"credential_accepted","notification_id":"Q9ifGB0it7OAREv_FOg7dVA_wzc5508J"}

    Response

    HTTP/2.0 204 No Content
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b90315c501425-MSP
    Date: Sun, 06 Dec 2026 13:16:07 GMT
    Fly-Request-Id: 01M95QYPQ4VSDKZHNJH8R7YAVN-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=blnqZxRu2qXOrQHSK8ySY9bGoG3QE%2Bl1xZzQPCa653cKiKjD56Rlwdjs0Kkh%2BXNI8ZPRH9P1hayq%2FQMztwI7keAv4djECBWOO8RkEnHMPu0hgzzUd%2F3%2FqkxiYgFIi%2BhIOic%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=4,cfOrigin;dur=209
    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
    
    

Failing exchange

Rejected, as requiredConformance client

The conformance client sends /oid4vci/notification a credential_accepted event for a notification_id that the issuer returned to a different Access Token, presented with a second, valid Access Token.

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

  1. 1.POST https://protocolsoup.com/oid4vci/notification400 Bad Request

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vci/notification HTTP/2.0
    Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImNyZWRlbnRpYWxfY29uZmlndXJhdGlvbl9pZHMiOlsiVW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWxTREpXVCJdLCJleHAiOjE3OTY1NjMyNzQsImlhdCI6MTc5NjU2Mjk3NCwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29pZDR2Y2kiLCJqdGkiOiJqdGktYTVjNzUxNDQzMzQxOTIzZCIsIm5iZiI6MTc5NjU2Mjk3NCwib2ZmZXJfaWQiOiJMeXVqd2ZHT1lOR0J1OS1YdlVhMUZfR1AiLCJzY29wZSI6InZjOmlzc3VlIiwic3ViIjoid2FsbGV0Okx5dWp3ZkdPWU5HQnU5LVh2VWExRl9HUCJ9.j1uqt2ic1UTyCmzQKXX1W4T6RiQ21sXcMkXXa_eKGklthS3tmU9GLIM5wyATsUmlqZthq9RgyUW5yoNxi5Fedjd_QVTlnr7OLs1ylVjPM0nXNIq_iF1ffEXzNPzRTkOzdWrBZdJiobHL42z_SMM9ahG3Gu_YZW3b1wuNrHZZHcKCSXuobsQV-1h2cdjdZHkUhz2aKo53MA11VcES1HF5IxXA8MBR3Lj4_CP6uZjxQ85X5rhAB_LlhnzmwHkT39j6HPcYP-fC4_z9wnVCixEQh5_da46TfnIoAAeRh2BZnL3346qaytVrxIq5FjbuJMixWl_N1PG0Cot0xp0j75zrDw
    Content-Length: 84
    Content-Type: application/json
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    {"event":"credential_accepted","notification_id":"gFOvDFtAL2YmFarxFt8ES6-pFDtNx5PD"}

    Response

    HTTP/2.0 400 Bad Request
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b90635eb11425-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:16:15 GMT
    Fly-Request-Id: 01M95QYYH64NSX4SHWJNG2C755-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=O72kuJVxpZH2nZ%2F7jNzxfRzO4rmWCfh1FEFDpntxozwrz5wH4TPjk%2BSNeqv5d6HkII1sT5uaaomkZc2LrQbeqB%2BySXFDM5tPsaozZUt5uMJ45KVULuD7hoO0uh5uQrnfDTU%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=5,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
    
    {"error":"invalid_notification_id","error_description":"notification_id is invalid for this access token"}
    

Tests

Implementation

Explainer

What this requires

OID4VCI 1.0 Section 11 lets the Wallet report what happened to issued Credentials. The event value "MUST be a case sensitive string whose value is either credential_accepted, credential_failure, or credential_deleted." The endpoint is idempotent: "When the Credential Issuer receives multiple identical calls from the Wallet for the same notification_id, it returns success." Section 11.3 adds: "When the notification_id value is invalid, the HTTP response MUST use the HTTP status code 400 (Bad Request)".

The specification does not say in so many words that a notification_id belongs to one Access Token. ProtocolSoup treats a notification_id presented with any token other than the one that issued it as invalid.

Why it exists

Section 11 is explicit about the network: "Due to the network errors, there are no guarantees that a Credential Issuer will receive a notification within a certain time period or at all." A Wallet that did not get a response will retry, so the retry must not count as a second event.

Without the token binding, a notification_id would be a bearer handle to someone else's issuance state. Any Wallet holding a valid token could mark another Wallet's Credentials as deleted or failed.

What non-compliance looks like

An issuer that compares event case-insensitively accepts Credential_Accepted. An issuer that appends every call to its log records one acceptance twice. An issuer that looks up notification_id without the token lets one Wallet report on another Wallet's issuance. The correct error codes are invalid_notification_id and invalid_notification_request, both with HTTP 400.

How ProtocolSoup tests it

handleNotification in handlers.go returns HTTP 401 with invalid_token when the token is missing or invalid. These requests get HTTP 400 with invalid_notification_request: a non-JSON media type, a repeated parameter, a missing notification_id, an unknown event, or an event_description with characters outside %x20-21 / %x23-5B / %x5D-7E. An unknown notification_id, or one created under another token, gets HTTP 400 with invalid_notification_id. A first event, or an identical retry, returns HTTP 204, and a retry adds no new event.

ProtocolSoup also applies its own state rule. credential_accepted may be followed by credential_deleted, but a conflicting terminal event such as credential_failure after an acceptance is rejected with invalid_notification_request. Section 11.3 leaves what happens after an error to the issuer.

TestNotificationEndpointMutatesStateAndIsIdempotent posts the same credential_accepted twice. It asserts 204 both times, exactly one stored event, and two Looking Glass events, the second marked idempotent_retry. TestNotificationEndpointRejectsInvalidRequestsAndCrossTokenID asserts 400 and the error code for a wrong-case event, a newline in event_description, an unknown ID, and an ID presented with another token. It also asserts 401 when no token is sent. TestNotificationRejectsConflictingTerminalEvent asserts 204 for acceptance, 400 invalid_notification_request for a following credential_failure, and 204 for credential_deleted.

Messages that carry it

Related requirements

All OID4VCI 1.0 requirements · OID4VCI protocol page