ElevenID
ElevenID LLC
Login
All Posts
Flows
1 of 4
8 min read

Flows

A flow orchestrates the credential journey across application, approval, issuance, presentation, and verification. MIP's Flow primitive ties Trust Profile, Template, Policy, and Deployment together.


Issuance is the process by which an issuer creates and delivers a signed credential to a holder. In MIP, this is orchestrated by a Flow - a configured sequence of states (Submitted -> Under Review -> Approved -> Issued) that models the real-world credential application process. Flows are the fifth MIP primitive and the user-facing orchestration layer: they compose the other four primitives into a real credential journey.

OID4VCI: The Standard Protocol

Over-the-internet issuance uses OpenID for Verifiable Credential Issuance (OID4VCI). The issuer publishes a credential offer as a QR code or deep link. The holder's wallet initiates the authorization code or pre-authorized code flow. After authentication and approval, the wallet receives a signed credential in the holder's chosen format (SD-JWT-VC, mDoc, or W3C VC).

Credential offer structure (OID4VCI)

json
{
  "credential_issuer": "https://issuer.example.com",
  "credential_configuration_ids": ["EmployeeBadgeCredential"],
  "grants": {
    "authorization_code": {
      "issuer_state": "eyJhbGciOiJFZER...",
      "authorization_server": "https://auth.example.com"
    },
    "urn:ietf:params:oauth:grant-type:pre-authorized_code": {
      "pre-authorized_code": "SplxlOBeZQQYbYS6WxSbIA",
      "tx_code": { "length": 6, "input_mode": "numeric" }
    }
  }
}
Flow States and Human Approval

Complex credential types require human review before issuance. A professional licence credential might require a completed application, document uploads, and a reviewer's sign-off. MIP Flows model this with named states and transition rules. Cedar policies govern who can approve each state transition - so the same flow definition works for self-service issuance and human-reviewed issuance by simply changing the policy that guards the Approved transition.