Credential issuance begins with governed decisions about claims, authority, evidence, format, and lifecycle. OID4VCI then standardizes the OAuth-protected exchange a wallet uses to request a credential, including immediate and deferred responses.
Issuance
Credential Issuance
Credential issuance is easy to mistake for a short network exchange.
A wallet may receive or retrieve a Credential Offer. OAuth messages move between systems. The issuer returns a signed credential immediately or makes it available through deferred issuance.
Those steps describe delivery, but they do not establish the issuer's authority to make the claims or the verifier's policy for accepting them. Before the wallet receives anything, the issuer must decide what claims it is authorized to make, what evidence supports them, which approval path applies, how the credential is secured, and what happens when its state changes.
A reliable issuance design therefore has three layers: governed preparation, standards-based delivery, and privacy-conscious lifecycle evidence.
Issuance begins with the object and the authority behind it, not with a QR code.
In the Marty Identity Protocol, a Credential Template defines the semantic credential type, claims, validity rules, compliance profile, payload format and any required format-specific type identifier, privacy posture, issuer identity and signing configuration, and optional application, trust, and revocation references. For DID-backed issuance, the issuer DID and its authorized verification method provide the public material used to verify the signature. Their successful resolution does not make the issuer trusted by itself; acceptance still depends on the verifier's Trust Profile. Opaque KMS references and remote-signing configuration remain organization-scoped deployment metadata and are not verifier trust inputs.
Evidence and approval are separate decisions. A low-risk credential may be issued after an automated eligibility check. A professional license, government identity, or privileged employee credential may require submitted evidence, rules-based review, human approval, or an external decision. Authentication can establish which account or authenticator is participating, but it does not by itself prove the applicant's real-world identity or that every requested claim is true and authorized.
MIP uses Flow definitions to make the operating path explicit. Depending on its type, a Flow references the applicable Credential Template, Application Template, Trust Profile, Presentation Policy, delivery destination, or Deployment Profiles. Standard OID4VCI issuance flows require a Credential Template. An application-approval issuance flow instead requires an Application Template, which must be bound to an active Credential Template before activation. Each FlowExecution records the current step, step results, lifecycle status, relevant timestamps, a failure code when applicable, and the resulting IssuedCredential identifier after successful issuance.
This separation helps keep business meaning out of OAuth handlers, controller code, and wallet-specific defaults. First define what may be issued, by whom, from which evidence, and under which lifecycle rules. Then select the protocol that carries it.
OpenID for Verifiable Credential Issuance 1.0 defines an OAuth-protected API through which a wallet can obtain verifiable credentials. It covers issuer metadata, credential configurations, authorization, token exchange, credential requests, optional fresh nonces, immediate or deferred responses, and optional wallet notifications.
That scope is broader than simple transport. OID4VCI lets an issuer advertise the credential configurations and format capabilities it supports, while credential-format profiles define the parameters used for formats such as IETF SD-JWT VC and ISO mdoc. The standard deliberately leaves the issuer-specific business process that gathers evidence and prepares a credential outside its scope.
The Credential Issuer and OAuth Authorization Server may be operated by the same entity or by separate entities. Issuer metadata tells the wallet which Authorization Server to use. That server grants the access token; the Credential Endpoint then validates the token for the credential request.
OID4VCI can work with OAuth grant types beyond the two flows it illustrates in detail. MIP currently models the authorization-code and pre-authorized-code paths as separate standard Flow types, preserving their different step sequences without treating either one as the complete issuance architecture.
With the authorization-code flow, the wallet sends an authorization request to the Authorization Endpoint. Processing typically includes authenticating the end user and gathering consent before the wallet exchanges the resulting code at the Token Endpoint for an access token.
With the pre-authorized-code flow, the issuer prepares the issuance before starting the wallet interaction and gives the wallet a short-lived, single-use code. That preparation may include authentication and authorization, but the business process is issuer-specific and outside OID4VCI. An optional transaction code can help bind redemption to the intended transaction; it should not be mistaken for identity proofing by itself.
Both paths can result in a wallet obtaining authorization to request a credential. Neither protocol path, by itself, establishes whether the source evidence was sufficient, whether an employee still holds a role, or whether a licensing authority approved an application. Those remain governance and business-process responsibilities.
Format names are another place where layers can blur. MIP uses internal enum values such as SD_JWT_VC and MDOC in its configuration model. OID4VCI 1.0 uses wire identifiers such as dc+sd-jwt and mso_mdoc in credential issuer metadata.
A correct implementation maps between those vocabularies explicitly. The wallet matches its request to a credential configuration in issuer metadata, including the format-specific parameters and any supported binding and key-proof requirements. The issuer's chosen credential-signing algorithm must be valid for the format profile and consistent with any signing capabilities advertised in that configuration. Claiming support for "verifiable credentials" or "OID4VCI" without those details is not enough to establish interoperability.
When cryptographic holder binding is required, the Credential Endpoint can require proof of possession for holder-controlled key material. A fresh c_nonce may be obtained from the Nonce Endpoint and used in that proof. Before signing, the Credential Endpoint validates the access token, requested credential identifier or configuration, applicable issuance policy, and any proof the configuration requires.
Once the wallet receives the credential, the issuer's lifecycle responsibilities continue. Renewal, suspension, revocation, expiration, support investigations, retries, and audit all depend on knowing what happened after the protocol exchange closes.
MIP separates runtime evidence from credential lifecycle state. FlowExecution records progress and step results. After successful issuance, IssuedCredential links the execution to the Credential Template and records lifecycle metadata such as format, issuance and validity times, current status, status-list references when used, and renewal lineage. It can also retain hashes of the credential and canonical subject claims without storing those raw values.
The IssuedCredential design deliberately excludes the raw credential payload and raw subject claims. That is the right direction for audit evidence: retain enough metadata and hashes to correlate events and manage lifecycle operations without building a second copy of the identity data store.
The same restraint should apply to protocol traces. Raw application evidence, complete credential payloads, access tokens, pre-authorized codes, transaction codes, nonces, and holder secrets can create unnecessary privacy and security risk. Operational records should be purpose-limited, access-controlled, retention-bound, and designed to support investigation without copying every sensitive value into another database.
Uncertain outcomes also need an explicit rule. OID4VCI allows a wallet to access the credential endpoint multiple times with the same access token, and the issuer decides what later successful requests return. A timeout should therefore not silently become either "issued" or "failed." The implementation should reconcile the prior attempt before retrying and prevent an uncertain retry from creating an unintended additional credential.
Issuance and presentation also remain distinct. Issuance establishes how a credential comes into existence under issuer authority. Presentation governs how a holder later answers a verifier's request, including disclosure, freshness, and verifier policy. Connecting their audit histories is useful; collapsing them into one operation is not.
The practical model is straightforward: define the credential and approval rules first, use OID4VCI for an interoperable wallet exchange, map format identifiers explicitly, and retain only the lifecycle evidence needed to operate the credential responsibly.
These primary sources define the issuance API, the credential data model, and MIP's governance objects.
Final specification for credential configurations, authorization paths, nonce and credential endpoints, holder binding, and lifecycle considerations.
W3C Recommendation defining the credential data model, validity properties, status discovery, and privacy considerations.
The template contract and its boundary between public issuer verification material and private signing or key-custody configuration.
The verifier-side contract for accepted issuers, trust sources, DID resolution, and verification-method constraints.
The reusable orchestration contract, including type-dependent object references and fixed standard flow sequences.
The runtime record for current-step progress, step results, lifecycle status, timestamps, failure codes, and links to successfully issued credentials.
The lifecycle-record contract, including metadata-only storage, hashes, status references, renewal lineage, and links to FlowExecution and Credential Template.
Protocol Architect - Identity Protocol Design
Daniel studies the design of identity protocols and how systems exchange verifiable claims between issuers, holders, and verifiers. His work explains the underlying mechanics of decentralized identity protocols.
From templates to live credentials - the issuance API handles formatting, signing, and delivery.