ElevenID
ElevenID LLC
All Posts
Implementations
1 of 5
9 min read

OID4VCI: The Issuance Standard

OpenID for Verifiable Credential Issuance (OID4VCI) is the IETF standard for delivering credentials from issuer to wallet. Here's how MIP implements both the authorization code and pre-authorized code flows.


OID4VCI is an IETF draft standard that extends OAuth 2.0 to support verifiable credential issuance. It defines how a holder's wallet discovers what credentials an issuer offers, how the holder authenticates, and how the credential is securely delivered. MIP implements OID4VCI as the standard issuance protocol for all credential types.

Two Grant Types

The authorization code flow provides the highest security: the user authenticates with the issuer's OAuth authorization server before the credential is generated. This is the correct flow for online issuance scenarios. The pre-authorized code flow is used when the user has already been authenticated out-of-band - for example, during in-person onboarding where the issuer generates a PIN-protected offer code.

Credential request to OID4VCI /credential endpoint

http
POST /credential HTTP/1.1
Host: issuer.example.com
Authorization: Bearer czZCaGRSa3F0MzpnWDFmQ...
Content-Type: application/json

{
  "credential_configuration_id": "EmployeeBadgeCredential",
  "proof": {
    "proof_type": "jwt",
    "jwt": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6..."
  }
}

// Response:
{
  "credential": "eyJhbGciOiJFUzI1NiJ9...",
  "c_nonce": "fGFF7UkhLa",
  "c_nonce_expires_in": 86400
}
Credential Format Negotiation

OID4VCI supports format negotiation - the wallet requests its preferred format (SD-JWT-VC, mDoc, or W3C VC) and the issuer delivers accordingly. MIP's Credential Template system supports multiple output formats from the same template definition, so a single template can issue an SD-JWT for web use cases and an mDoc for proximity use cases.