OpenId4VciServer
Server implementation to issue credentials using OID4VCI.
Implemented from OpenID for Verifiable Credential Issuance 1.0 from 2025-09-16.
Constructors
Types
Send it converted with toHttpResponse.
Send it converted with toHttpResponse, which sends response as the JSON-serialized body, and dpopNonce in HTTP header DPoP-Nonce when present.
Properties
Metadata about the credential issuer in SD-JWT VC
The metadata of this credential issuer, to be served with metadataHttpResponse, which selects between this and signedMetadata.
Functions
Verifies the authorizationHeader to contain a token from authorizationService, verifies the proof sent by the client (must contain a nonce sent from authorizationService), and issues credentials to the client by calling credentialDataProvider.
The response to serve at the path formed by inserting the string /.well-known/openid-credential-issuer (see OpenIdConstants.WellKnownPaths.CredentialIssuer) into the Credential Issuer Identifier between the host component and the path component, if any: status 200 with signedMetadata as application/jwt when the request's Accept header acceptHeader lists application/jwt with a quality not below the one of application/json, else metadata as application/json (OID4VCI 1.0 12.2.2). The header Vary: Accept tells caches about this selection (RFC 9110 12.5.5).
Provides a fresh nonce for credential proofs and a DPoP nonce for DPoP proofs. Requests from the client are HTTP POST. Send the result converted with toHttpResponse.
The signed metadata of this credential issuer, to be served with metadataHttpResponse, which selects between this and metadata.