VC
VC (protocolsoup-vc)
Section titled “VC (protocolsoup-vc)”Image: ghcr.io/parlesec/protocolsoup-vc
When To Use
Section titled “When To Use”Use VC service when you want standalone OID4VCI and OID4VP capabilities without the broader federation stack (OAuth, OIDC, SAML).
Runtime Contract
Section titled “Runtime Contract”| Property | Value |
|---|---|
| Port | 8080 |
| Health | GET /health |
| API index | GET /api |
| Credential formats | dc+sd-jwt (SD-JWT VC), jwt_vc_json, jwt_vc_json-ld, ldp_vc (W3C Data Integrity with ecdsa-rdfc-2019 / eddsa-rdfc-2022) |
| Credential type | UniversityDegreeCredential |
Key Endpoints
Section titled “Key Endpoints”OID4VCI
Section titled “OID4VCI”GET /.well-known/openid-credential-issuer/oid4vci– issuer metadataPOST /oid4vci/offers/pre-authorized– create pre-authorized offerPOST /oid4vci/offers/pre-authorized/by-value– offer by valuePOST /oid4vci/offers/pre-authorized/deferred– deferred offerPOST /oid4vci/token– token endpointPOST /oid4vci/nonce– nonce endpointPOST /oid4vci/credential– credential requestPOST /oid4vci/deferred_credential– deferred credential
OID4VP
Section titled “OID4VP”POST /oid4vp/request/create– create authorization requestGET|POST /oid4vp/request/{requestID}– authorization requestGET /oid4vp/verifier-attestation/.well-known/openid-configuration– verifier attestation issuer metadataGET /oid4vp/verifier-attestation/.well-known/oauth-authorization-server– verifier attestation AS metadataGET /oid4vp/verifier-attestation/jwks– verifier attestation issuer JWKSPOST /oid4vp/response– wallet response (direct_post,direct_post.jwt)GET /oid4vp/result/{requestID}– verification result
Configuration
Section titled “Configuration”| Variable | Required | Default | Description |
|---|---|---|---|
SHOWCASE_BASE_URL |
Yes | http://localhost:8080 |
External URL for issuer/verifier metadata |
SHOWCASE_CORS_ORIGINS |
No | http://localhost:3000,http://localhost:5173 |
Allowed browser origins |
SHOWCASE_DATA_DIR |
No | - | State directory for the issuer PKI, verifier sessions, and the auto-provisioned OID4VP X.509 request signer |
OID4VP_VERIFIER_ATTESTATION_ISSUER |
No | <SHOWCASE_BASE_URL>/oid4vp/verifier-attestation |
Issuer URL exposed for verifier_attestation metadata and JWKS |
OID4VP_VERIFIER_ATTESTATION_CLIENT_ID |
No | verifier_attestation:<public-host> |
Verifier client ID used when client_id_scheme=verifier_attestation |
OID4VP_VERIFIER_ATTESTATION_PRIVATE_KEY_PEM |
No | Ephemeral in-memory key | PEM-encoded stable signing key for verifier attestation JWTs and JWKS |
OID4VP_X509_SANDNS_CLIENT_ID |
No | x509_san_dns:<public-host> |
x509_san_dns verifier identifier; must match a DNS SAN in the leaf certificate |
OID4VP_X509_SANDNS_CERT_CHAIN_PEM |
No | Ephemeral self-signed chain | PEM-encoded certificate chain for x509_san_dns request signing. When unset, an ephemeral CA + leaf chain is auto-generated at startup. |
OID4VP_X509_SANDNS_PRIVATE_KEY_PEM |
No | Ephemeral key | PEM-encoded private key matching the leaf certificate. When unset, generated alongside the ephemeral chain. |
docker run -p 8080:8080 \ -e SHOWCASE_BASE_URL=http://localhost:8080 \ -e SHOWCASE_DATA_DIR=/app/data \ -v vc-data:/app/data \ ghcr.io/parlesec/protocolsoup-vc:latestOperational Notes
Section titled “Operational Notes”- Pair with the Wallet service (see Wallet page in this tab) for end-to-end OID4VP testing.
SHOWCASE_BASE_URLmust match your public URL for correct issuer and verifier metadata.- The issuer stores no issued credential (OID4VCI 1.0 Section 15.3: “After Issuance, Credential Issuers SHOULD NOT store the Issuer-signed Credentials if they contain privacy-sensitive data.”). A deferred credential waits in memory until the wallet collects it, or for 30 minutes after it became ready. A
{SHOWCASE_DATA_DIR}/vc/wallet_credentials.jsonleft by an earlier release is no longer read or written and can be deleted. - The verifier validates the issuer of a presented credential from its own trust configuration: the issuer root certificate persisted under
SHOWCASE_MDOC_PKI_PATHor{SHOWCASE_DATA_DIR}/mdocformso_mdocanddc+sd-jwt, and the key set this deployment’s issuer publishes forjwt_vc_jsonandldp_vc. Ajwt_vc_json-ldcredential is issued but not accepted in a presentation, because OpenID4VP 1.0 Appendix B defines no Credential Format Identifier for it. Set one of those directories to a durable volume, or no certificate-backed presentation is accepted. - Data Integrity processing loads no JSON-LD context from the network. A credential or presentation may name only the contexts held as local copies of the published files (
https://www.w3.org/2018/credentials/v1,https://w3id.org/security/data-integrity/v2,https://w3id.org/security/multikey/v1,https://w3id.org/security/jwk/v1,https://w3id.org/security/suites/ed25519-2020/v1andhttps://protocolsoup.com/oid4vci/contexts/university-degree/v1); any other context, including an inline one, is refused, and a term no context defines or a relative identifier is refused withDATA_LOSS_DETECTION_ERROR(VC Data Integrity 1.0 Sections 2.4, 2.4.1 and 2.4.3). The only request Data Integrity verification can make is for a holder verification method that is adid:weborhttpsURL, and the verifier sends it over HTTPS to public addresses only. - With
SHOWCASE_DATA_DIRset, the verifier keeps each request session in its own file,{SHOWCASE_DATA_DIR}/vc/oid4vp_request_sessions/{request_id}.json, reads them once at startup and deletes a session’s file when the session is evicted. Session files are read, written and removed only inside that directory: a file name is the server-generatedrequest_id, and a symbolic link that leads out of the directory is not followed, so the verifier refuses to start while one is there. A{SHOWCASE_DATA_DIR}/vc/oid4vp_request_sessions.jsonleft by an earlier release is no longer read or written and can be deleted. - Client ID schemes supported:
redirect_uri,did:web,verifier_attestation, andx509_san_dns. Bothverifier_attestationandx509_san_dnsauto-provision ephemeral keys/certificates when their PEM env vars are unset. - Set
OID4VP_VERIFIER_ATTESTATION_PRIVATE_KEY_PEMin production so verifier attestation JWKS and signed request objects remain verifiable across restarts and deploys. - Set
OID4VP_X509_SANDNS_CERT_CHAIN_PEMandOID4VP_X509_SANDNS_PRIVATE_KEY_PEMin production for stable x509_san_dns certificate continuity. Alternatively, setSHOWCASE_DATA_DIRto a durable volume: the generated signer is persisted at{SHOWCASE_DATA_DIR}/oid4vp/, and its CA root must be configured in every wallet throughWALLET_VERIFIER_X509_TRUST_ANCHOR_PEM.