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.
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
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
}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.
What is Digital Identity?
What is a Verifiable Credential?
What is Verification?
Centralized vs Verifiable Identity
Cryptographic Trust Anchors
PKI & Certificate Chains
Policy Engines with Cedar
Trust Registries
Privacy & Data Minimization
You are on article 24 of 41 in Part V: Implementation.
Zero-Knowledge Predicates in Identity: What, Why, and How
Proving you're over 21 without revealing your birthday. MIP's predicate-aware policies keep identity verification focused on the bounded question.
Implementing OID4VP with Marty
OID4VP carries the presentation request and response. Marty is the part that decides what the verifier actually needs, which issuers are trusted, and how the same exchange behaves in a browser, API, or constrained deployment without turning each runtime into a different system.