IssuerService

class IssuerService(issuer: Issuer, credentialSchemes: Collection<ConstantIndex.CredentialScheme>, codeService: CodeService = DefaultCodeService(), tokenService: TokenService = DefaultTokenService(), clientNonceService: NonceService = DefaultNonceService(), authorizationServer: String? = null, publicContext: String = "https://wallet.a-sit.at/", authorizationEndpointPath: String = "/authorize", tokenEndpointPath: String = "/token", credentialEndpointPath: String = "/credential")

Server implementation to issue credentials using OpenID for Verifiable Credential Issuance. Implemented from Draft openid-4-verifiable-credential-issuance-1_0-11, 2023-02-03.

Constructors

Link copied to clipboard
constructor(issuer: Issuer, credentialSchemes: Collection<ConstantIndex.CredentialScheme>, codeService: CodeService = DefaultCodeService(), tokenService: TokenService = DefaultTokenService(), clientNonceService: NonceService = DefaultNonceService(), authorizationServer: String? = null, publicContext: String = "https://wallet.a-sit.at/", authorizationEndpointPath: String = "/authorize", tokenEndpointPath: String = "/token", credentialEndpointPath: String = "/credential")

Properties

Link copied to clipboard

Serve this result JSON-serialized under /.well-known/openid-credential-issuer

Functions

Link copied to clipboard

Send this result as HTTP Header Location in a 302 response to the client.

Link copied to clipboard

Verifies the authorizationHeader to contain a token from tokenService, verifies the proof sent by the client (must contain a nonce from clientNonceService), and issues credentials to the client. Send the result JSON-serialized back to the client.

Link copied to clipboard

Verifies the authorization code sent by the client and issues an access token. Send this value JSON-serialized back to the client.