OpenID4VCI - Issue Credential (In-Time)
InTime issuance of credentials (or immediately) using OpenID for Verifiable Credentials Issuance (OID4VCI) involves two main stages: the creation of a credential definition and the in-time issuance of the credential.
Create Credential Definition: This involves the following sub-steps as illustrated:
- Define: Establish the parameters and rules for the credential.
- Prepare: Set up the necessary infrastructure and information for issuing the credential.
InTime Issue: The credentials are issued after either being authorised or pre-authorised (as indicated by the transaction code, Txn_Code). Before issuing, the holder’s wallet endpoint must be configured.
The image illustrates this process, showing how the credential definition is linked to the in-time issuance mechanism. The flow moves from defining and preparing the credential to an authorised issuance step, where the credential can be configured and issued to the holder’s wallet. Here are the steps to follow:
Step 1: Get the API Key (Issuer Admin)
To get the API key contact support@igrant.io.
Step 2: Issue Credential (Issuer)
Copy the code block below to issue credential in InTime
issuance mode. Execute the API available here.
- JWT
- SD-JWT
{
"issuanceMode": "InTime",
"userPin": "",
"credential": {
"type": [
"VerifiableLegalPersonalIdentificationData"
],
"credentialSubject": {
"identifier": "123400-7899",
"legalName": "Bygg AB"
}
}
}
{
"issuanceMode": "InTime",
"userPin": "",
"credential": {
"type": [
"VerifiableLegalPersonalIdentificationData"
],
"credentialSubject": {
"identifier": "123400-7899",
"legalName": "Bygg AB"
}
},
"disclosureMapping": {
"credentialSubject": {
"identifier": {
"limitedDisclosure": true
},
"legalName": {
"limitedDisclosure": true
}
}
}
}
To reuse credential definitions during issuance, you can utilise the create credential definition endpoint and use the credentialDefinitionId
during the credential issuance process.
Step 3: Receive Credential Offer (Holder)
The holder wallet can receive the credential offer in the following ways:
- Using your Data Wallet (or any other Digital Wallet: From the response, use the
credentialOffer
and generate the QR code here using plain text option - Using your Organisation Wallet (or similar).
Try It Yourself (With Demo Video)
Watch the below demo to learn issue credential API and try it out yourselves: