How are credential_identifiers used when OID4VCI authorization_details are requested?
Credential identifiers bound to authorization_detailsOID4VCI 1.0 §6.3 and 8.2MUSTRoles: authorization_server, issuer
Requirement as recorded in the ProtocolSoup registry
When authorization_details are used, the Authorization Server returns credential_identifiers for the authorized Credential Configurations and the Credential Issuer authorizes requests by those bound identifiers.
Read §6.3 and 8.2 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 /oid4vci/credential the credential_identifier that the Token Response returned in authorization_details, with the Access Token from that same response.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.POST https://protocolsoup.com/oid4vci/credential200 OK
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oid4vci/credential HTTP/2.0 Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImNyZWRlbnRpYWxfY29uZmlndXJhdGlvbl9pZHMiOlsiVW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWxTREpXVCJdLCJleHAiOjE3OTY1NjMyNTEsImlhdCI6MTc5NjU2Mjk1MSwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29pZDR2Y2kiLCJqdGkiOiJqdGktMjIyMDlhMjczZjQwMzU1OCIsIm5iZiI6MTc5NjU2Mjk1MSwib2ZmZXJfaWQiOiJiVjRXZGNBaXRyM1p3Vm9YSTJzSEs1SzEiLCJzY29wZSI6InZjOmlzc3VlIiwic3ViIjoid2FsbGV0OmJWNFdkY0FpdHIzWndWb1hJMnNISzVLMSJ9.K7DfXIp8KVpg-Az4GLUqDW8ky8_-tp6Ny7r51KXEJjCT313UfJR2w3XWTICIMozvq9_tFq6WtSVs5S4q6kU-R_R2UKS7fc_WmDLkrsLYm6BhLFdQhZWzlrOOY3mLORPV5tzBGdM8BIoNP-W87e9dFI-CFg0-di5g-CMWPt1n9dA4AisqrsyBvEOc5tOw4vH9o3I2TalsAEu2FYi88MeUGA0SrqidW3aLqNVpnuF3Sg6q37vznn451l5Ut-zhP6fcH1ZTQ9_qI6VrPSdN8yNX1f6UN2XuELQLj45YS_hlIs3-3aiKBc3h7RuakRcIR2zfamp0o-yQBqhiPPv0KQc1nw Content-Length: 532 Content-Type: application/json Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 {"credential_identifier":"LZ7wr-vQrTKfLEgBTvxEsXzkfJdeWbXL","proofs":{"jwt":["eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InJaM0lpSkE1UkVxLWFwLW1GNjlnQ1htUzgzSUVtYmg5MENlTHB0bFhEZHMiLCJ5IjoiZVg4RENhWU5mU19iREEtTVBrLWU0cnNPWEpVT1ppWWR4SjdaWmQyTVI2ayJ9LCJ0eXAiOiJvcGVuaWQ0dmNpLXByb29mK2p3dCJ9.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImlhdCI6MTc5NjU2Mjk1Miwibm9uY2UiOiJjb1Vjc2swSHBoeFlTbF9XVTVHNWRqeWwifQ.fTOw6volBf92eimXdobIOXRf4Ny61XN4qzqp-fglPpKA1eWYp6SeKoq16bPQVgnIUFynm0SOOoKDjgGr3Dcusw"]}}Response
HTTP/2.0 200 OK Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65b8fd9daa11425-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:15:53 GMT Fly-Request-Id: 01M95QY91KB9B7EQVA5EG3RDZ4-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=sOj6fkvyyqROnEONhydRGrpmcilDjGoxeSAm2t9S9Ml%2BEJqD3EqWTJunY5J49010LiRCtTT79J%2FSZoItH4uoFjXjLQFNVAQf48HpTMn96romVUuhA6PsBZ3wbL9EvPDJhuk%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=3,cfOrigin;dur=207 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 {"credentials":[{"credential":"eyJhbGciOiJFUzI1NiIsImtpZCI6Ik5KMER1S0x2M0VsU0tCTWpKMEpkOXdZRkZnbmczVk5GcEwwdzFldDhRMUkiLCJ0eXAiOiJkYytzZC1qd3QiLCJ4NWMiOlsiTUlJQ2ZqQ0NBaVNnQXdJQkFnSVJBS0FCQklSc2hyczRhYVVsbzE4OUY1QXdDZ1lJS29aSXpqMEVBd0l3U1RFTE1Ba0dBMVVFQmhNQ1ZWTXhGVEFUQmdOVkJBb1RERkJ5YjNSdlkyOXNVMjkxY0RFak1DRUdBMVVFQXhNYVVISnZkRzlqYjJ4VGIzVndJRzFFVENCSlFVTkJJRkp2YjNRd0hoY05Nall3TmpJek1USTFOVFF5V2hjTk1qY3dOakl6TVRNd01EUXlXakJQTVFzd0NRWURWUVFHRXdKVlV6RVZNQk1HQTFVRUNoTU1VSEp2ZEc5amIyeFRiM1Z3TVNrd0p3WURWUVFERXlCUWNtOTBiMk52YkZOdmRYQWdiVVJNSUVSdlkzVnRaVzUwSUZOcFoyNWxjakJaTUJNR0J5cUdTTTQ5QWdFR0NDcUdTTTQ5QXdFSEEwSUFCUEtJUXE3amRaQmFlQnNFV1BGenRLZGpBeTMwTkxqOFhjdW5FODlmV1hZMzl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WdDWG1TODNJRW1iaDkwQ2VMcHRsWERkcyIsInkiOiJlWDhEQ2FZTmZTX2JEQS1NUGstZTRyc09YSlVPWmlZZHhKN1paZDJNUjZrIn19LCJleHAiOjE3OTY2MDE2MDAsImlhdCI6MTc5NjUxNTIwMCwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29pZDR2Y2kiLCJqdGkiOiJmMHcwdDdYMC1pQTIxMklubzVacVdYS3AiLCJuYmYiOjE3OTY1MTUyMDAsInN1YiI6ImFsaWNlIiwidmN0IjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL2NyZWRlbnRpYWxzL3VuaXZlcnNpdHlfZGVncmVlIn0.rNRgpsIYTjx2RPZZiSZ3C5uCnUWlOWRG_V_XrcXAN9P-hA8dBxp6ES7jT1LqzWzvJEIF47HhMjVinJmc_8yw6g~WyI1MVk1Sm9MY04wZlpnNldKcHh3Zkt3IiwiZGVncmVlIiwiQmFjaGVsb3Igb2YgRW5naW5lZXJpbmciXQ~WyJkaGtvNHRVWUVsaE5iY2pDTDJWcHBBIiwiZGVwYXJ0bWVudCIsIkVuZ2luZWVyaW5nIl0~WyIzX0dPbTQwWHV2OGFuZ3dUY0YzMGlnIiwiZmFtaWx5X25hbWUiLCJKb2huc29uIl0~WyJDWE5qZFFKZExSdVZqQzY1THI1M0h3IiwiZ2l2ZW5fbmFtZSIsIkFsaWNlIl0~WyI1Vm51M3NJeWRnaHpDTGwtV2FoUkhRIiwiZ3JhZHVhdGlvbl95ZWFyIiwyMDE4XQ~"}],"notification_id":"pG04NXJDhpQfWKdfK-HZyBs5myJxkICw"}
Failing exchange
Rejected, as requiredConformance client
The conformance client sends /oid4vci/credential a credential_identifier that the issuer returned with a second Access Token, presented with the first Access Token.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.POST https://protocolsoup.com/oid4vci/credential400 Bad Request
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
POST /oid4vci/credential HTTP/2.0 Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImNyZWRlbnRpYWxfY29uZmlndXJhdGlvbl9pZHMiOlsiVW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWxTREpXVCJdLCJleHAiOjE3OTY1NjMyNTYsImlhdCI6MTc5NjU2Mjk1NiwiaXNzIjoiaHR0cHM6Ly9wcm90b2NvbHNvdXAuY29tL29pZDR2Y2kiLCJqdGkiOiJqdGktMDcyMTgxZmJmYjA3MmJlYSIsIm5iZiI6MTc5NjU2Mjk1Niwib2ZmZXJfaWQiOiJ6QlpoS0t3clZtVjdIaTh0Z0J5Zl85MVkiLCJzY29wZSI6InZjOmlzc3VlIiwic3ViIjoid2FsbGV0OnpCWmhLS3dyVm1WN0hpOHRnQnlmXzkxWSJ9.gK5lwtowrnsG7eKjBgTfu7HI972sEy3FthBpiOR46I8tWYDfU4T-fKuu8sGWiIN92fkuh4sP1qHkIlECkVFz-exDCaC2VwPReGOlAdGMhssmwYlpsHuhJ-AZORlEZ5vzOIvw1PFpKeByH-_eq-HDLE_z-goXcjBgIKH3QJLZ05r2zQKs8AfsM6kliaHd1Ewiq3KDw4UovLNt1U59RFCSiC0qDgXNvBpDM0zT_wfZVmjRKdcLUPXj3DeP2e13TD0BB67QQg3PcXJt6Yvq2Yv9QDkUuRpmQ5dLBWEcKKxNgExjdyvq-PNaJT5vSMzhj566hAPfH-Pt2ZaKhnWxJQUW2g Content-Length: 532 Content-Type: application/json Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1 {"credential_identifier":"YaRfGWvPSS_x673fCYZTOvu4ZP4zkNPL","proofs":{"jwt":["eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6InliR2dyeVVLa21EeExoZlpoLTBiekZuaXZrUmxsRTJ6TGVYOU9rekFKbmMiLCJ5Ijoicm9KNERkRWI5QUkzYUZvZGVUWnJnckQ3QVQ1RV9YLThjWkU2WVl4ZU9mMCJ9LCJ0eXAiOiJvcGVuaWQ0dmNpLXByb29mK2p3dCJ9.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImlhdCI6MTc5NjU2Mjk1OSwibm9uY2UiOiIzWmxZNW1BbGxuYTRmYVpaLXFOV1BBd0UifQ.xr5nXlzLt5vzFK0jR2TTlDPmQVPoO8kQNpJGJs1YJI6a1rMHoPYc_6SPmACt9ET1dD4JDrjF2GlKv3b01MtoFw"]}}Response
HTTP/2.0 400 Bad Request Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65b90059d951425-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:16:00 GMT Fly-Request-Id: 01M95QYFX2EDHAPCWVPYBY2B6X-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=KlB8S3FXiWZXc01OMwXx%2BwdhvXHQ6i389zBIsa9Q3OAZYYwePXxOiTrhnC39HhNXIeTgll4DxP3xjbpyNzu3x5YOz3UisI%2Bf6jAvy8f%2BQVQ8vFHKjzWEWBF7zk4bS3I6RUQ%3D"}]} Server: cloudflare Server-Timing: cfCacheStatus;desc="DYNAMIC" Server-Timing: cfEdge;dur=25,cfOrigin;dur=210 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":"unknown_credential_identifier","error_description":"credential_identifier is unknown or is not bound to this access token"}
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
- TestAuthorizationDetailsIssuesTokenBoundCredentialIdentifiers
./internal/protocols/oid4vci
Pass - TestCredentialIdentifierRejectsMixedUnknownAndCrossTokenValues
./internal/protocols/oid4vci
Pass - TestAuthorizationCodeGrantReturnsCredentialIdentifiers
./internal/protocols/oid4vci
Pass
Implementation
Explainer
What this requires
When authorization_details of type openid_credential is used in the Authorization Request or Token Request, the Token Response returns it with credential_identifiers. OID4VCI 1.0 Section 6.2 defines that member as "A non-empty array of strings, each uniquely identifying a Credential Dataset that can be issued using the Access Token returned in this response", and says "The Wallet MUST use these identifiers together with an Access Token in subsequent Credential Requests."
Section 8.2 sets the Credential Request side. credential_identifier is "REQUIRED when an Authorization Details of type openid_credential was returned from the Token Response. It MUST NOT be used otherwise." credential_configuration_id and credential_identifier are mutually exclusive.
Why it exists
A credential_identifier is a reference to a Credential Dataset that one Access Token authorised. If the issuer resolves it without checking which token it came from, a Wallet holding a token for one dataset can request a dataset authorised under a different token, for example by reusing an identifier it saw in another session. Binding identifiers to the token that returned them closes that path.
What non-compliance looks like
An issuer that keeps one global identifier table accepts an identifier minted for a different token. An issuer that falls back to credential_configuration_id after it has returned identifiers lets the Wallet bypass the dataset the Authorization Server selected. Under Section 8.3.1.2 these requests should fail with unknown_credential_identifier or invalid_credential_request.
How ProtocolSoup tests it
At the token endpoint, createCredentialAuthorization mints one random identifier for each authorised configuration and stores the mapping on the access grant. This happens for the pre-authorized and authorization code grants. At the Credential Endpoint, a request that sends both parameters gets invalid_credential_request. An identifier that is not on this token's grant gets unknown_credential_identifier. A credential_configuration_id on a token that returned identifiers gets invalid_credential_request ("credential_identifier is required for this access token"). All of these are HTTP 400.
TestAuthorizationDetailsIssuesTokenBoundCredentialIdentifiers offers two configurations and requests one through authorization_details. It asserts that exactly one authorization_details item comes back, that a Credential Request using that identifier returns HTTP 200 with a Credential and a notification_id, and that the response has no singular credential. TestCredentialIdentifierRejectsMixedUnknownAndCrossTokenValues asserts the error code for four requests: both parameters together, an unknown identifier, an identifier from a second token, and credential_configuration_id after identifiers were returned. TestAuthorizationCodeGrantReturnsCredentialIdentifiers asserts that the authorization code grant records the returned identifier on the real access grant. It then replays the code and asserts that the token is revoked and that the Credential Endpoint answers with invalid_token.