From SSO to SSI: Implementing Self-Sovereign Identity in Practice

·5 min readdigital-identitysecurity

TL;DR: Self-sovereign identity (SSI) shifts identity from IdP-mediated sessions to holder-controlled wallets that store and present verifiable credentials using standards such as DIDs, W3C VCs, OpenID4VC, SD-JWT VC, and mdoc. Evolving SSO into SSI is usually a phased, hybrid migration where IdPs become issuers, RPs become verifiers, and gateways bridge legacy apps—delivering stronger user control and selective disclosure, but introducing new challenges in key recovery, trust frameworks, revocation privacy, and interoperability.

Single sign-on (SSO) made identity easier to reuse across applications, but it kept users and relying parties dependent on live identity providers, centralized account stores, and broad attribute sharing. Self-sovereign identity (SSI) changes the model by letting holders receive cryptographically verifiable credentials, keep them in a wallet, and present only what a verifier needs—often without contacting the original issuer at presentation time.

This article examines how SSI is implemented in practice, how organizations can evolve existing SAML/OAuth 2.0/OpenID Connect systems toward SSI, and what the shift means from security and technical perspectives. The focus is on primary standards and frameworks, including W3C DID and Verifiable Credentials, OpenID for Verifiable Credentials, IETF SD-JWT and Token Status List drafts, ISO mdoc, the EU EUDI Wallet Architecture and Reference Framework (ARF), and NIST digital identity guidance.

SSI Foundations

Core actors and trust components

ComponentRole in SSISSO-era parallel
IssuerCreates and signs credentials about a subject; publishes metadata and status infrastructureIdentity provider / attribute authority
HolderControls a wallet, stores credentials, consents to disclosure, and generates presentations/proofsEnd user with an account/session
Verifier (Relying Party)Requests claims, verifies proofs and trust, checks status/freshness, applies policyService provider / RP
Trust infrastructureDID documents, issuer/verifier metadata, PKI, trusted lists/registries, schemas, status endpointsFederation metadata, certificates, trust frameworks

W3C’s Verifiable Credentials Data Model v2.0 defines credentials as tamper-evident claim packages issued by an issuer and presentations as holder-assembled data shown to a verifier. Importantly, cryptographic verification is distinct from validation: a verifier must still decide whether the issuer, credential type, status, and claims are acceptable for its policy and use case.

Identifiers, credentials, and formats

  • DIDs (Decentralized Identifiers v1.0) are URI-like identifiers resolved through method-specific rules to DID documents containing verification methods, relationships, and service endpoints. DID methods differ in anchoring, privacy, governance, and operational assumptions, so “using DIDs” is not a single trust model.
  • VCs/VPs (W3C VC Data Model 2.0) provide the core data model for issuers, holders, and verifiers, with support for securing mechanisms, validity periods, and status information.
  • SD-JWT VC (IETF OAuth draft) combines JWT-based credentials with selective disclosure using SD-JWT disclosures and optional key binding; it is widely used in OpenID4VC and EUDI-aligned profiles but remains an active Internet-Draft.
  • mdoc/mDL (ISO/IEC 18013 family) uses CBOR/COSE encodings and supports proximity and online presentation patterns, making it common for high-assurance government credentials and mobile driving licenses.
  • JSON-LD VC / Data Integrity and AnonCreds/BBS+ ecosystems offer richer semantics or privacy-preserving proof capabilities in some stacks, but interoperability depends heavily on chosen profiles and libraries.

Protocols and lifecycle primitives

Modern SSI implementations commonly combine:

  • OpenID for Verifiable Credential Issuance (OID4VCI) 1.0 for issuer-to-wallet issuance (authorization code or pre-authorized flows, proof/nonce handling, immediate or deferred issuance).
  • OpenID for Verifiable Presentations (OID4VP) 1.0 for verifier-to-wallet presentation requests and responses (including query constraints, response modes, and holder proofs in profile-specific flows).
  • SIOPv2 in historical or profile-specific contexts for self-issued authentication patterns, increasingly discussed in relation to OpenID4VP profiles.
  • DIDComm v2 for secure DID-to-DID agent messaging in some decentralized agent architectures.
  • Status mechanisms such as W3C Bitstring Status List v1.0 and IETF Token Status List for revocation/suspension/freshness with scalability and privacy trade-offs.

How People Implement SSI Today

Common architecture patterns

PatternTypical componentsWhere it fits
OpenID4VC-first stackOID4VCI, OID4VP, SD-JWT VC and/or mdoc, issuer/verifier metadata, PKI/trusted lists, Token Status List or Bitstring Status ListEnterprise and government programs prioritizing OAuth/OIDC alignment and interoperability profiles
DID/agent stackDIDs, VCs, DIDComm messaging, agent frameworks; sometimes AnonCreds/ledger-based trust in legacy deploymentsPeer-to-peer or ecosystem-specific deployments with strong agent-to-agent messaging needs
Regulated wallet ecosystemCertified wallets, accredited issuers/verifiers, PID/attestations, OpenID4VC + mdoc/SD-JWT profiles, lifecycle governanceHigh-assurance public-sector ecosystems such as the EU Digital Identity Wallet

Real-world implementation signals

  • EU EUDI Wallet (ARF): A regulation-driven reference architecture covering wallet providers, person identification data (PID), electronic attestations of attributes, issuer/verifier roles, trust establishment, certification, and lifecycle controls. It aligns implementation work with OpenID4VC and ISO mdoc/SD-JWT profile families while emphasizing governance as much as protocol mechanics.
  • Microsoft Entra Verified ID: An enterprise-oriented service that brings verifiable credential issuance and verification into existing Microsoft identity environments, illustrating a bridge between centralized IAM and portable credentials.
  • Hyperledger Aries / Indy / AnonCreds ecosystem: A long-running SSI tooling lineage with agent frameworks, DIDComm patterns, and privacy-preserving credential approaches (especially AnonCreds). Many deployments now coexist with or migrate toward newer OpenID4VC-based interoperability profiles.
  • Commercial and open-source platforms (e.g., Spruce, MATTR and others): Productized SDKs and services for issuance, verification, and wallet integration, often differentiated by supported profiles, trust models, and developer tooling rather than by SSI principles alone.

Public capabilities evolve quickly, so vendor claims should be validated against current technical documentation, supported profiles, and interoperability test results.

Credential lifecycle in practice

  1. Issuance: The wallet discovers issuer capabilities, completes authorization (OID4VCI authorization code or pre-authorized flow), proves key possession or satisfies issuance requirements, and receives credentials immediately or via deferred issuance.
  2. Storage and key control: Credentials and keys are stored in wallet-controlled environments (device secure hardware, TEE/secure enclave, or managed/HSM-backed models depending on assurance). Holder binding links a credential presentation to a key or device under the holder’s control when required by the profile.
  3. Presentation: A verifier sends a request (often OID4VP) with nonce/query constraints; the wallet selects credentials, applies selective disclosure and consent, creates proofs, and returns a presentation response.
  4. Verification and status: The verifier checks cryptographic proofs, issuer trust, holder binding, schema/profile conformance, validity windows, and revocation/suspension status (e.g., Bitstring Status List or Token Status List) before making a policy decision.

From SSO to SSI: Evolution Paths

Conceptual mapping

SSO elementSSI evolutionPractical implication
IdPBecomes an issuer (and may still run authorization services for issuance)Identity proofing and attribute authority remain valuable, but assertions become reusable credentials
SP/RPBecomes a verifierApps verify holder-presented proofs instead of always redirecting users to an IdP
User account/sessionBecomes a wallet + credentials + holder keysUsers manage portable credentials and consent; session tokens may still exist for app/API access
Federation metadataExpands to issuer/verifier metadata, DID docs, trusted lists, PKI, status endpointsTrust bootstrapping becomes multi-artifact and profile-dependent
SAML assertion / ID tokenComplements or yields to VCs, VPs, SD-JWT VCs, mdocsClaims can be selectively disclosed and reused across contexts with appropriate governance

Migration strategies

1. Add VC issuance to existing IAM

Keep current SAML/OIDC login flows, but extend the IdP or IAM platform to issue verifiable credentials for reusable attributes (employee status, student enrollment, verified age, KYC outcomes). This delivers early value without forcing application rewrites.

2. Introduce a verifier gateway or broker

Deploy a VC/OID4VP verifier service that translates successful presentations into claims, entitlements, or legacy OIDC/SAML assertions for downstream applications. This is often the fastest path for brownfield estates, but it can re-centralize trust and availability if the gateway becomes mandatory for everything.

3. Run dual-stack federation

Operate SSO and SSI in parallel: high-assurance, privacy-sensitive, or cross-organization verification flows use wallets and credentials, while routine session-heavy application access continues on OIDC/SAML. This reduces rollout risk and supports phased partner onboarding.

4. Replace targeted high-value flows first

Prioritize use cases where SSI’s benefits are clear—reusable identity proofing, eligibility/attribute verification, workforce/mobile credentials, regulated wallet scenarios, or phishing-resistant step-up checks—rather than attempting a wholesale SSO replacement.

What changes in trust, data flow, and UX

  • Trust moves from live IdP mediation toward credential trust: verifier confidence depends on issuer authenticity, holder binding, status/freshness, schema/profile conformance, and ecosystem accreditation or trusted lists.
  • Data flow changes from “RP redirects to IdP every time” to “wallet presents selected credentials to verifier,” with possible status/metadata lookups. This can reduce synchronous IdP dependence but increases the importance of endpoint availability and secure retrieval.
  • UX can improve through consentful selective disclosure and credential reuse, but users must handle wallet onboarding, backup/recovery, cross-device flows, and trust signals about verifiers and requested data.

How SSI works with SSO (and what is online vs offline)

The key mental model: SSO authenticates by talking to an IdP at login time, while SSI authenticates by presenting a previously issued credential from a wallet. Issuance usually happens earlier (online), and presentation may happen online or offline depending on the use case and profile.

flowchart TB subgraph SSO["Traditional SSO (SAML / OAuth 2.0 / OIDC)"] U1[User + browser/app] --> RP1[Service Provider / RP] RP1 -->|Redirect for login| IDP[Identity Provider] IDP -->|User authenticates live| IDP IDP -->|Assertion / ID token| RP1 RP1 -->|Session established| U1 end subgraph SSI["SSI / Verifiable Credentials"] ISS[Issuer\nformerly IdP role] -->|1. Issue credential\nusually online| WAL[Holder wallet] WAL -->|2. Store credential + keys\nlocal/offline capable| WAL WAL -->|3. Present selected claims/proofs| VER[Verifier\nformerly RP role] VER -->|4. Verify signature + trust + policy| VER VER -.->|Optional: fetch status/trust metadata\nonline, cacheable| TRUST[Status lists / trusted lists / metadata] VER -->|Access / decision| U1b[User] end

What can be offline vs online

StepTypical connectivityNotes
Credential issuanceUsually onlineWallet and issuer/authorization server exchange offers, authorization, proofs, and credential delivery (OID4VCI). Deferred issuance may delay delivery, but issuance is still a connected process.
Credential/key storageOffline/localOnce issued, credentials and holder keys live in the wallet (device secure storage/SE/TEE or managed wallet) and can be available without network access.
Remote presentation (e.g. web login, cross-device QR, API access)OnlineWallet and verifier exchange request/response over the internet (e.g. OID4VP). User can still disclose only selected claims.
Proximity/offline presentation (e.g. mDL/mdoc in-person)Often offline/local between holder and verifierWallet and verifier can communicate via NFC/BLE/QR/device engagement per profile. The verifier must already trust issuer keys/certificates (or have them cached/provisioned) to validate cryptographically offline.
Status/revocation/freshness checksOften online, sometimes cached or policy-dependentVerifiers may fetch Bitstring Status List/Token Status List endpoints; caches improve availability/privacy but can be stale. Some flows rely on short-lived credentials or accept risk-based freshness windows when offline.
Trust metadata/DID resolutionOnline for retrieval, cacheableIssuer metadata, JWKS, trusted lists, and DID documents can be fetched ahead of time or cached; fully offline verification requires pre-provisioned trust anchors.
Legacy app access via SSO bridgeOnline at integration pointsA verifier gateway can validate a VC presentation, then mint an OIDC/SAML assertion for an app that still expects SSO.

Hybrid flow: SSI presentation bridged into legacy SSO

sequenceDiagram autonumber participant User participant Wallet participant Verifier as Verifier/Gateway participant App as Legacy App (OIDC/SAML RP) participant Trust as Status/Trust sources User->>App: Access protected resource App->>Verifier: Start SSO login (redirect/protocol bridge) Verifier->>Wallet: OID4VP presentation request (nonce, claims/query) Wallet->>User: Show request + consent/selective disclosure User->>Wallet: Approve Wallet->>Verifier: VP/credential response + holder binding proof Verifier->>Trust: Optional: fetch/cache status, issuer metadata, trust lists Trust-->>Verifier: Status/trust data Verifier->>Verifier: Verify proofs, issuer, status, policy Verifier->>App: Issue OIDC ID token / SAML assertion (mapped claims) App->>User: Session/access granted

In this hybrid pattern, the user experience and credential verification become SSI-based, but the downstream application can remain unchanged because the gateway speaks SSO on its behalf. This is why many migrations keep SSO protocols at the edge while moving trust and attribute presentation toward verifiable credentials.

Security Model and Threats

SSI security is socio-technical: cryptographic correctness is necessary, but outcomes also depend on wallet UX, governance, accreditation, endpoint operations, and user behavior. Threat modeling for SSI therefore spans protocol flows, device and key storage, trust registries/metadata, and ecosystem rules.

Threat-model scope

ElementExamplesWhy it matters
Primary assetsHolder private keys, credentials/attestations, PID/PII attributes, consent decisions, session/nonces, issuer signing keys, status/trust metadataCompromise or misuse enables impersonation, fraud, surveillance, or denial of service
ActorsHolder/user, wallet/wallet provider, issuer, verifier/relying party, trust registry/status provider, network attacker, malicious insiders/colluding partiesAny role can be benign, compromised, negligent, or adversarial depending on the scenario
Trust boundariesUser device/secure hardware, wallet app and backend, issuer/verifier services, browser/app redirect channels, DID/metadata/status endpoints, cross-device transportMost high-impact threats occur at boundary crossings (input parsing, key use, URL fetches, trust decisions)
Security goalsAuthenticity, integrity, confidentiality, holder binding, freshness/replay resistance, least disclosure, unlinkability where possible, availability, accountability/non-repudiation as requiredSSI often improves phishing resistance and minimization, but introduces new privacy and lifecycle risks

This framing aligns with emerging decentralized-credential threat-model work (e.g. W3C’s Decentralized Credentials Threat Model draft) and regulated wallet risk analyses such as the EUDI ARF risk register, which distinguish high-level risks (identity theft, data disclosure/manipulation, unauthorized transactions, surveillance) from technical threats (physical attacks, misconfiguration, unreliable dependencies, outages, and malicious actions).

Threats by lifecycle phase

Phase / boundaryRepresentative threatsSecurity and privacy impactMitigations
Issuance (OID4VCI, onboarding)Phishing during pre-authorized or cross-device flows, stolen authorization codes/tokens, credential issuance to wrong wallet/key, issuer key compromise, malicious issuance metadataWrong subject binding, fraudulent credentials, account takeover at sourceStrong user/holder authentication, proof-of-possession and key attestation, issuer metadata validation, PKI/accreditation controls, short-lived tokens/nonces, audited issuance processes
Wallet storage and key lifecycleDevice theft/malware, key extraction, backup/restore abuse, weak recovery, wallet-provider compromise, “wallet for hire” or voluntary sharing, cloned/transferable attestations in weak designsCredential theft, impersonation, repudiation disputes, long-lived compromiseHardware-backed keys (SE/TEE/WSCD), local user verification, wallet/app attestation, certified components, secure backup/reissuance, rate limits and anomaly detection, clear recovery and revocation playbooks
Presentation (OID4VP, DIDComm, proximity flows)Replay of presentations/proofs, verifier impersonation/phishing, over-asking and consent manipulation, request tampering, cross-device/session confusion, credential pooling/collusion where only per-credential binding is checkedUnauthorized access, data over-disclosure, fraudulent composite claims (e.g. combining credentials from different holders), correlationNonce and audience/client binding, transaction/data binding, verifier authentication/trust marks and signed requests, strict response-mode handling, holder-binding proofs, per-transaction freshness checks, policy checks for multi-credential presentations
Verification and trust infrastructureAccepting untrusted issuers/schemas, stale or unavailable status, status endpoint tracking, DID/metadata/status SSRF or parser abuse, trust-list/cache poisoning, algorithm/configuration errorsFalse acceptance/rejection, privacy leakage, verifier compromise, ecosystem denial of serviceSeparate cryptographic verification from business validation, explicit issuer/schema/trust policies, status caching with privacy controls (Bitstring Status List/Token Status List), strict URL/content validation and egress controls, robust parsers and conformance testing
Ecosystem and systemic risksWholesale surveillance/correlation, issuer-verifier collusion, governance failures, legal/non-compliance, supply-chain compromise, concentration in gateways/wallet providersLarge-scale privacy harm, loss of trust, vendor lock-in, single points of failureData minimization by design, unlinkability techniques where feasible, independent audits/certification, transparency and redress mechanisms, federated/brokered architectures with strong policy boundaries, resilient operations

Notable SSI-specific threat patterns

  • Replay and audience confusion: Presentations must be bound to the verifier and transaction (nonce/client/audience/origin as applicable). Formal analyses of OpenID for Verifiable Credentials found that cross-device and some pre-authorized patterns require careful user and protocol safeguards, while same-device flows can be secure when specified checks are enforced.
  • Verifier phishing and over-collection: SSI reduces IdP-in-the-middle dependency but does not remove malicious verifiers. Wallets and ecosystems need verifier registration, authenticated/signed requests, clear purpose display, and selective-disclosure enforcement.
  • Correlation and linkability: Even with selective disclosure, holders can be tracked via stable identifiers, credential fingerprints, issuer signatures, transaction timing, colluding verifiers, or naive status checks. Status-list “phone home” effects and metadata fetch behavior are practical privacy risks.
  • Credential pooling and composite-proof gaps: If verifiers only validate that each presented credential is individually holder-bound, colluding users may combine separately valid credentials in one transaction. High-assurance designs must define when credentials must be bound to the same holder/device/session.
  • Metadata and endpoint attack surface: Wallets and verifiers routinely fetch issuer metadata, JWKS, DID documents, schemas, and status resources. Each fetch path is a potential SSRF, injection, tracking, or availability vector and must be treated as untrusted input.
  • Recovery and delegated control: Lost devices, key rotation, guardianship, and backup/restore are frequent failure points. Weak recovery can be worse than weak authentication because it rebinds long-lived identity authority.

Security properties SSI can improve

Compared with conventional SSO sessions, SSI can improve phishing resistance and reduce centralized blast radius in some flows: verifiers can require holder-bound, verifier-targeted proofs instead of reusable passwords or broadly scoped bearer artifacts, and users can avoid exposing a full identity profile for every interaction through selective disclosure. These benefits are real but conditional—they depend on wallet security, verifier request integrity, trust governance, and disciplined status/revocation operations.

Key management, holder binding, and revocation

  • Holder binding is central to preventing credential forwarding. OID4VCI proof mechanisms, SD-JWT key binding concepts, and mdoc device-bound models aim to ensure the presenter controls the relevant key/device.
  • Key lifecycle must cover generation, rotation, suspension, revocation, migration, and recovery. Standards provide building blocks, but recovery remains one of the hardest operational problems.
  • Revocation/freshness requires a policy choice: online status checks (Bitstring Status List, Token Status List), short-lived credentials, or hybrid approaches. Faster revocation can increase availability/privacy pressure; offline acceptance can increase stale-trust risk.

Security guidance for migration programs

  1. Define assurance targets early (identity proofing, authentication, holder binding, verifier trust) and map them to NIST-aligned or sector-specific controls.
  2. Treat the wallet as a high-value endpoint: secure hardware, attestation, phishing-resistant verifier UX, and tested recovery are non-negotiable for sensitive use cases.
  3. Separate cryptographic verification from business validation in verifier design; a valid signature does not imply issuer trust, correct schema, active status, or policy fit.
  4. Minimize data by default: request only required claims, avoid unnecessary stable identifiers, and assess correlation risks across issuers, verifiers, and status providers.
  5. Harden all network fetch paths (metadata, DID resolution, status, schemas) against SSRF, parser confusion, and malicious content.

Technical View

Protocol flow snapshots

Issuance (OID4VCI, simplified)

  1. Wallet discovers issuer/credential metadata and receives a credential offer.
  2. Holder completes authorization (authorization code or pre-authorized code).
  3. Wallet obtains token/nonce context and sends credential request with required proof.
  4. Issuer returns credential immediately or as a deferred transaction.
  5. Wallet validates, stores, and indexes credential for future presentations.

Presentation (OID4VP remote, simplified)

  1. Verifier creates a request (nonce, response mode, credential/query constraints).
  2. Wallet authenticates the user, evaluates matching credentials, and requests consent.
  3. Wallet applies selective disclosure and generates holder-binding proofs.
  4. Wallet submits presentation response to verifier endpoint (online).
  5. Verifier validates request-response binding, signatures/proofs, trust chain, profile conformance, and status/freshness.

Presentation (proximity/offline-capable, simplified)

  1. Verifier and wallet establish local engagement (e.g. QR/NFC/BLE in mdoc profiles).
  2. Verifier sends a request with session/nonce data over the local channel.
  3. Wallet authenticates the user, applies consent/selective disclosure, and returns device-bound proofs locally.
  4. Verifier validates signatures/proofs and pre-provisioned or cached trust anchors; status/freshness checks may be deferred, cached, or policy-limited if no connectivity is available.

Interoperability and standards landscape

AreaCurrent realityEngineering implication
Credential formatsJSON-LD VC, JWT VC, SD-JWT VC, mdoc, and ecosystem-specific formats coexistChoose explicit profiles; do not assume cross-format portability
Presentation/issuance protocolsOpenID4VCI/OID4VP are converging points; drafts, options, and regional profiles still varyPin versions/profiles and run conformance tests
Status/revocationBitstring Status List and Token Status List address different token ecosystems and deployment preferencesAbstract status checking behind policy-aware interfaces
Trust establishmentDID-method trust, PKI/trusted lists, and regulated accreditation frameworks differBuild pluggable trust evaluators and clear acceptance policies
MessagingDIDComm is relevant for agent-to-agent flows but not required for OpenID4VC-based web/mobile exchangesSelect transport/protocols per use case, not ideology

Scalability and performance

  • Status checks benefit from compact list formats and caching, but verifiers must balance freshness, availability, and privacy. Bitstring Status List and Token Status List are designed with large-scale distribution in mind.
  • Issuance throughput depends on authorization architecture, deferred/batch flows, and backend attribute sources; separating authorization and credential issuance can improve operational flexibility.
  • Verification latency includes signature/proof checks, trust-chain evaluation, schema/profile validation, and status retrieval. Local policy caches and prevalidated trust metadata can materially reduce user-perceived delay.
  • Offline/proximity use cases (notably mdoc) shift some trust/freshness trade-offs to device and policy design; online revocation guarantees may be weaker or deferred.

Integrating SSI with existing IAM

  • Model claims deliberately: use VCs for durable or reusable verified attributes and keep OAuth access tokens for runtime API authorization where appropriate.
  • Bridge legacy systems: verifier gateways can emit OIDC/SAML-compatible outputs, allowing incremental adoption without rewriting every relying party.
  • Align assurance and lifecycle: map credential issuance assurance, holder binding, authenticator strength, and revocation SLAs to existing IAM governance (e.g., NIST SP 800-63 concepts and sector controls).
  • Avoid recreating centralized chokepoints: gateways are useful, but over-centralization can reintroduce availability, surveillance, and vendor-lock-in risks that SSI aims to reduce.

Open-Source Libraries and Implementation Patterns

Choosing a stack depends on your target profile (W3C VC vs SD-JWT VC vs mdoc), protocol (OID4VCI/OID4VP, DIDComm), language/runtime, and whether you need wallet, issuer, verifier, or agent capabilities. The ecosystem is active and APIs evolve quickly, so treat versioned docs and conformance tests as the source of truth.

Library landscape (representative)

ProjectPrimary language(s)Typical useStrengths / notes
Credo (OpenWallet Foundation, formerly Aries Framework JavaScript)TypeScript/JavaScriptWallet/issuer/verifier agents, OpenID4VC, DIDComm, multi-tenant agentsModern TS stack for mobile/web/server; good fit for OpenID4VC-based credential exchange and DIDComm workflows
VeramoTypeScript/JavaScriptModular agent framework for DIDs, VC issuance/verification, DID resolution, storage pluginsFlexible plugin architecture; useful for building custom issuer/verifier services and experimenting with DID methods and proof formats
walt.id Community StackKotlin/JVM, REST APIs, SDKsIssuer/verifier/wallet services, OID4VCI/OID4VP, SD-JWT VC, W3C VC, mDLAPI-first and profile-oriented (Issuer2/Verifier2/Wallet2), practical for rapid integration and standards-aligned pilots
Hyperledger Identus (Aries/PRISM lineage in LF Decentralized Trust)Scala, SDKs/APIsEnterprise SSI platform components (cloud agent, edge/wallet SDKs)Targets interoperable, production-oriented identity infrastructure; evaluate current modules and protocol support for your profile
ACA-Py (Aries Cloud Agent Python)Python + REST Admin APICloud/enterprise agents for issuance, verification, connections, mediationMature Aries/DIDComm tooling and operational controls; often used with controllers/services that orchestrate flows via API
DIDKit (SpruceID)Rust core, CLI, C/FFI, WASM bindingsDID operations, VC/VP signing and verification, portable crypto toolingLightweight and embeddable; useful for CLI pipelines, cross-platform libraries, and low-level credential operations
Bifold / OWF wallet projectsReact Native (Bifold ecosystem)Mobile wallet UX/reference implementationsStarting point for mobile holder apps; pair with protocol/agent libraries and platform security hardening
OpenID4VC client/server librariesVarious (TS, Kotlin, Java, Rust, Go, etc.)Standards-focused OID4VCI/OID4VP implementationsUseful when you want protocol-level control and narrower dependencies; verify spec version/profile compatibility carefully

Implementation deep dive: what you actually build

At minimum, an SSI integration implements three responsibilities:

  1. Issuance service: authenticates the subject, resolves attributes from authoritative sources, selects credential schema/profile, binds holder key material when required, signs the credential, and exposes OID4VCI metadata/endpoints or DIDComm issuance flows.
  2. Wallet/holder agent: manages keys in secure storage, handles credential offers and proof-of-possession, stores credentials, renders consent UX, performs selective disclosure, and creates verifiable presentations.
  3. Verifier service: generates presentation requests (nonce/audience/query constraints), validates presentation proofs and credential signatures, resolves issuer trust (DID/PKI/trusted lists), checks status/freshness, and maps verified claims into application policy/session tokens.

Verification is a pipeline, not a single signature check

1. Parse request/response and enforce profile constraints (format, alg, transport)
2. Verify cryptographic proof(s) (issuer signature + holder binding/proof of possession)
3. Validate identifiers and trust anchors (DID document, x5c/PKI chain, trusted list, metadata)
4. Check temporal validity (nbf/iat/exp, issuance/validity windows)
5. Check credential status/freshness (Bitstring Status List / Token Status List / policy cache)
6. Validate schema/claims/query satisfaction (required fields, DCQL/presentation definition)
7. Apply business authorization policy (purpose, assurance, risk, consent context)

Example 1: Issue and verify a W3C VC with Veramo (TypeScript)

Veramo’s plugin-based agent can create DIDs, issue credentials, and verify them. This example shows the core credential flow (storage/resolver/KMS configuration omitted for brevity).

import { createAgent } from '@veramo/core'
import { DIDManager, MemoryDIDStore } from '@veramo/did-manager'
import { KeyManager, MemoryKeyStore, MemoryPrivateKeyStore } from '@veramo/key-manager'
import { KeyManagementSystem } from '@veramo/kms-local'
import { CredentialPlugin } from '@veramo/credential-w3c'
import { CredentialProviderJWT } from '@veramo/credential-jwt'
import { DIDResolverPlugin } from '@veramo/did-resolver'
import { getResolver as keyDidResolver } from 'key-did-resolver'
type AgentPlugins = DIDManager & KeyManager & CredentialPlugin
const agent = createAgent<AgentPlugins>({
plugins: [
new KeyManager({
store: new MemoryKeyStore(),
kms: { local: new KeyManagementSystem(new MemoryPrivateKeyStore()) },
}),
new DIDManager({
store: new MemoryDIDStore(),
defaultProvider: 'did:key',
providers: {
// register a did:key provider in a full setup
},
}),
new DIDResolverPlugin({
...keyDidResolver(),
}),
new CredentialPlugin([new CredentialProviderJWT()]),
],
})
async function issueAndVerify() {
// In a real app, create/load issuer and holder identifiers first
const issuer = await agent.didManagerGetOrCreate({ alias: 'issuer' })
const credential = await agent.createVerifiableCredential({
credential: {
'@context': ['https://www.w3.org/2018/credentials/v1'],
type: ['VerifiableCredential', 'EmployeeCredential'],
issuer: { id: issuer.did },
issuanceDate: new Date().toISOString(),
credentialSubject: {
id: 'did:example:holder-123',
employeeId: 'E-1007',
department: 'Engineering',
clearance: 'internal',
},
},
proofFormat: 'jwt',
})
const result = await agent.verifyCredential({ credential })
if (!result.verified) {
throw new Error(`Credential verification failed: ${JSON.stringify(result.error)}`)
}
return credential
}

Why this matters technically: the issued JWT VC contains signed claims (issuer, subject, issuance time, proof/JWT). The verifier must still add trust and policy checks beyond verified === true (is this issuer allowed to issue EmployeeCredential? is status valid? is the holder bound/present in this transaction?).

Example 2: Quick DID and credential operations with DIDKit (CLI)

DIDKit is useful for prototyping, testing, and understanding credential primitives without building a full agent stack.

Terminal window
# 1) Generate an issuer key (JWK)
didkit generate-ed25519-key > issuer.jwk
# 2) Derive a did:key identifier from the key
didkit key-to-did key -k issuer.jwk
# -> did:key:z6Mk...
# 3) Prepare an unsigned credential (credential.json)
cat > credential.json <<'JSON'
{
"@context": ["https://www.w3.org/2018/credentials/v1"],
"type": ["VerifiableCredential", "MembershipCredential"],
"issuer": "did:key:REPLACE_WITH_ISSUER_DID",
"issuanceDate": "2026-11-10T00:00:00Z",
"credentialSubject": {
"id": "did:example:member-42",
"membershipLevel": "gold"
}
}
JSON
# 4) Sign/issue the credential
didkit vc-issue-credential \
-k issuer.jwk \
-p assertionMethod \
< credential.json > vc-signed.json
# 5) Verify the credential
didkit vc-verify-credential < vc-signed.json

In real deployments you would pair this with secure key storage, DID method resolution, revocation/status checks, and presentation protocols (OID4VP/DIDComm) rather than file-based CLI flows.

Example 3: Orchestrating issuance with ACA-Py (REST controller pattern)

ACA-Py exposes an Admin API that a controller application drives. The exact endpoints and payloads vary by protocol/version and credential format, but the controller pattern is consistent.

Terminal window
# Example: list credential exchange records (issuer or holder side)
curl -s "$ACA_PY_ADMIN_URL/issue-credential-2.0/records" \
-H "X-API-Key: $ACA_PY_ADMIN_API_KEY"
# Example: controller sends an offer (payload fields depend on connection, filter, and format)
curl -s -X POST "$ACA_PY_ADMIN_URL/issue-credential-2.0/send-offer" \
-H "Content-Type: application/json" \
-H "X-API-Key: $ACA_PY_ADMIN_API_KEY" \
-d '{
"connection_id": "<connection-id>",
"comment": "Employee credential offer",
"filter": {
"ld_proof": {
"credential": {
"@context": ["https://www.w3.org/2018/credentials/v1"],
"type": ["VerifiableCredential", "EmployeeCredential"],
"issuer": "did:example:issuer",
"credentialSubject": {
"id": "did:example:holder",
"department": "Engineering"
}
},
"options": { "proofType": "Ed25519Signature2018" }
}
}
}'

This model is powerful for backend orchestration, but it means your security boundary includes the Admin API, controller logic, webhook handlers, wallet/key storage, and transport configuration.

Example 4: Mapping verified claims into a legacy SSO session

A verifier gateway can bridge SSI verification results into existing applications. The key technical rule is to mint short-lived, audience-scoped tokens only after full VC/VP validation.

// Pseudocode: after OID4VP/VC validation succeeds
type VerifiedClaims = {
subjectDid: string
employeeId: string
department: string
assurance: 'high' | 'substantial' | 'low'
}
function toOidcClaims(vcClaims: VerifiedClaims) {
return {
sub: vcClaims.subjectDid,
employee_id: vcClaims.employeeId,
department: vcClaims.department,
acr: vcClaims.assurance,
amr: ['vc_presentation', 'holder_binding'],
}
}
// 1) validate VP signature, nonce, audience/client_id, holder binding
// 2) validate issuer trust + credential status/freshness + schema/profile
// 3) map claims and mint a short-lived ID token/assertion for the legacy RP

This is the practical “SSI on top of SSO” pattern: the relying app still consumes familiar tokens, while trust moves to verifiable credential verification at the gateway.

Protocol artifacts to understand (OID4VC debugging)

When debugging real implementations, you will spend time inspecting metadata and token/presentation payloads. Useful artifacts include issuer metadata, credential offers, authorization/presentation requests, and status entries.

{
"vct": "https://credentials.example.com/employee",
"iss": "https://issuer.example.com",
"iat": 1762732800,
"cnf": {
"jwk": {
"kty": "EC",
"crv": "P-256",
"x": "...",
"y": "..."
}
},
"employee_id": "E-1007",
"department": "Engineering",
"_sd_alg": "sha-256"
}

In SD-JWT VC flows, selectively disclosable claims and disclosures allow the wallet to reveal only required data, while key binding (cnf / KB-JWT patterns, profile-dependent) helps prove the presenter controls the holder key for that transaction.

Licensing, Open-Source Status, and Gotchas

Most SSI building blocks are available as permissively licensed open-source software, but “open source” does not automatically mean “zero cost”, “fully featured”, or “safe to use without review”. License terms, governance, packaging, and operational requirements all matter.

License snapshot (libraries mentioned above)

ProjectTypical licenseCommercial useCommon gotchas
Credo (OpenWallet Foundation)Apache-2.0Yes, permissiveSpec/profile coverage evolves quickly; mobile/wallet security depends heavily on your app, key storage, and dependency choices
VeramoApache-2.0Yes, permissiveModular plugin design means you assemble many parts (DID methods, KMS, storage, resolvers); you own production hardening and upgrade path
walt.id Community StackApache-2.0 (community repositories/services)Yes for community codeOpen-core split: Enterprise Stack, hosted offerings, SLAs, and some advanced/compliance features may be commercial; verify exactly which repo/service/version you deploy
Hyperledger IdentusApache-2.0Yes, permissivePlatform components and deployment topologies can be complex; evaluate which modules, ledgers, and protocol profiles are production-ready for your use case
ACA-PyApache-2.0Yes, permissivePowerful but operationally non-trivial (controller app, Admin API security, webhooks, storage/mediator/ledger dependencies); protocol support differs by credential format and version
DIDKit (SpruceID)Commonly dual-licensed Apache-2.0 and/or MIT (verify per crate/repo)Yes, permissiveLow-level toolkit: great for primitives, but you must build/compose issuance, presentation protocols, trust policy, status handling, and UX around it
Bifold (OpenWallet Foundation)Apache-2.0Yes, permissiveWallet UI/reference implementation, not a complete regulated wallet product; platform security, certification, and backend integrations are your responsibility

What “permissive open source” usually gives you

  • Apache-2.0 and MIT generally allow use, modification, redistribution, and commercial deployment, provided you keep required notices and comply with license terms.
  • Apache-2.0 includes an explicit patent license grant from contributors (subject to the license conditions), which is often relevant in cryptography/protocol implementations.
  • You can usually fork and self-host, but you still need to track upstream security fixes, breaking changes, and interoperability updates.

Practical gotchas to evaluate

  • Open core vs community edition: some vendors publish core libraries/services as open source while reserving enterprise features, managed hosting, support, certification tooling, or advanced integrations for paid plans. “Open source project” and “commercial product” may not have identical capabilities.
  • Protocol/spec version drift: a library can be “open source” but implement an older draft/profile (e.g. OpenID4VC draft vs 1.0, SD-JWT VC draft revisions, W3C VC 1.1 vs 2.0). This is a technical gotcha with licensing/operational consequences when you need interoperability or certification.
  • Hosted service is not the same as source license: using a vendor-hosted SaaS introduces terms of service, data processing, residency, pricing, and availability constraints even if underlying components are open source.
  • Dependencies and transitive licenses: crypto libraries, DID resolvers, JSON-LD processors, mobile SDKs, and database drivers may carry different licenses/obligations. Run SBOM/license scans in CI.
  • Trademarks and compatibility claims: license to use code is not license to use project trademarks or imply certification/conformance. Be careful with “compatible with X” claims in regulated ecosystems.
  • Contribution requirements: projects may require DCO sign-off or CLAs. This affects how your team can contribute fixes upstream.
  • Security and compliance are not included: permissive licenses disclaim warranties/liability; secure key storage, wallet hardening, audits, penetration testing, incident response, and regulatory compliance remain your responsibility.
  • Operational cost is real: even with free code, you pay for infrastructure, HSM/KMS/secure hardware, monitoring, status endpoints, trust-list operations, developer time, and interoperability testing.

Due-diligence checklist before adopting a library

  1. Confirm the exact license for the repo/tag/package and all critical dependencies.
  2. Check current spec/profile support (OID4VCI/OID4VP versions, VC format, DID methods, status mechanism, mdoc/SD-JWT support).
  3. Review maintenance signals: recent commits/releases, issue response, security advisories, roadmap, and governance (foundation-backed vs single-vendor).
  4. Evaluate security model fit: key management options, hardware-backed storage support, threat-model docs, and update process.
  5. Prototype an end-to-end flow (issue → store → present → verify → revoke/status check) against your target wallet/verifier ecosystem before standardizing.

Open Challenges

SSI standards have matured significantly in 2024–2026—W3C VC Data Model 2.0 and Bitstring Status List v1.0 became Recommendations in 2025, and OpenID4VCI/OID4VP 1.0 are published as final-specification-line documents—but several challenges remain. Recovery and delegated control are not uniformly solved, cross-ecosystem trust portability is often governance-limited rather than cryptography-limited, selective disclosure does not eliminate all correlation risks, and some widely deployed building blocks (such as SD-JWT VC and Token Status List at the time of research) continue to evolve through the standards process.

For most organizations, the practical path is not “replace SSO overnight” but “add verifiable credentials where portability, privacy, and assurance matter most,” while investing early in profiles, wallet/key lifecycle, verifier policy, and trust governance.


References

  1. Decentralized Identifiers (DIDs) v1.0 — W3C Recommendation (July 19, 2022) — https://www.w3.org/TR/did-core/
  2. Verifiable Credentials Data Model v2.0 — W3C Recommendation (May 15, 2025) — https://www.w3.org/TR/vc-data-model-2.0/
  3. Verifiable Credential Data Integrity 1.0 — W3C Recommendation (May 15, 2025) — https://www.w3.org/TR/vc-data-integrity/
  4. Bitstring Status List v1.0 — W3C Recommendation (May 15, 2025) — https://www.w3.org/TR/vc-bitstring-status-list/
  5. OpenID for Verifiable Credential Issuance 1.0 — OpenID Foundation (Final specification) — https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html
  6. OpenID for Verifiable Presentations 1.0 — OpenID Foundation (Final specification) — https://openid.net/specs/openid-4-verifiable-presentations-1_0.html
  7. SD-JWT-based Verifiable Credentials (SD-JWT VC) — IETF OAuth Working Group, Internet-Draft — https://datatracker.ietf.org/doc/draft-ietf-oauth-sd-jwt-vc/
  8. Selective Disclosure for JSON Web Tokens (SD-JWT) — IETF RFC 9901 (November 2025) — https://www.rfc-editor.org/rfc/rfc9901.html
  9. Token Status List — IETF OAuth Working Group, Internet-Draft — https://datatracker.ietf.org/doc/draft-ietf-oauth-status-list/
  10. DIDComm Messaging v2.x — Decentralized Identity Foundation — https://identity.foundation/didcomm-messaging/spec/
  11. ISO/IEC 18013-5
    Personal identification — ISO-compliant driving licence — Part 5: Mobile driving licence (mDL) application
    — ISO — https://www.iso.org/standard/69084.html
  12. Architecture and Reference Framework (ARF) — European Digital Identity Wallet, European Commission — https://eu-digital-identity-wallet.github.io/eudi-doc-architecture-and-reference-framework/latest/architecture-and-reference-framework-main/
  13. Annex 6 — Risk Register — European Digital Identity Wallet ARF — https://eudi.dev/latest/annexes/annex-6/annex-6-risk-register/
  14. European Digital Identity (EUDI) Regulation / eIDAS 2.0 framework — European Commission — https://commission.europa.eu/strategy-and-policy/priorities-2019-2024/europe-fit-digital-age/european-digital-identity_en
  15. Microsoft Entra Verified ID documentation — Microsoft Learn — https://learn.microsoft.com/en-us/entra/verified-id/
  16. Hyperledger Aries — LF Decentralized Trust — https://www.lfdecentralizedtrust.org/projects/aries
  17. AnonCreds Specification — Hyperledger AnonCreds — https://hyperledger.github.io/anoncreds-spec/
  18. Digital Identity Guidelines (SP 800-63-4) — NIST — https://pages.nist.gov/800-63-4/
  19. Digital Identity Guidelines: Federation and Assertions (SP 800-63C-4) — NIST — https://pages.nist.gov/800-63-4/sp800-63c.html
  20. Threat Model for Decentralized Credentials — W3C Group Note Draft (September 8, 2026) — https://www.w3.org/TR/threat-model-decentralized-credentials/
  21. Formal Security Analysis of OpenID for Verifiable Credentials — OpenID Foundation / Fabian Hauck, University of Stuttgart (January 19, 2024) — https://openid.net/2024/01/19/formal-security-analysis-openid-verifiable-credentials/
  22. Formal Security Analysis of the OpenID for Verifiable Presentations (DC API analysis) — OpenID Foundation (August 2025) — https://openid.net/wp-content/uploads/2025/08/Report-Deliverable-A_1_B_.pdf
  23. Protecting Digital Identity Wallet: A Threat Model in the Age of eIDAS 2.0 — Amir Sharif et al., Springer (2024) — https://link.springer.com/chapter/10.1007/978-3-031-82362-6_6
  24. The OAuth 2.0 Authorization Framework — IETF RFC 6749 — https://www.rfc-editor.org/rfc/rfc6749
  25. OpenID Connect Core 1.0 — OpenID Foundation — https://openid.net/specs/openid-connect-core-1_0.html
  26. Security Assertion Markup Language (SAML) V2.0 Technical Overview — OASIS — http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html
  27. OAuth 2.0 Security Best Current Practice — IETF RFC 9700 — https://www.rfc-editor.org/rfc/rfc9700

This article was written by Iceman Free (iceman-free | opencode).