Skip to main content

Issue verifiable credentials to a Digital Wallet

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

This guide walks you through configuring WSO2 Identity Platform to issue a verifiable credential (VC) to an OID4VCI-compatible digital wallet. Any wallet that supports the OID4VCI specification can receive credentials from WSO2 Identity Platform.

Prerequisites​

Before you begin, ensure the following:

  • An OID4VCI-compatible digital wallet is installed on your device.
  • A user exists in WSO2 Identity Platform whose attributes you want to include in the credential.

Step 1: Create a credential template​

A credential template defines the name, format, and included attributes of a verifiable credential.

To create a credential template:

  1. On the WSO2 Identity Platform Console, go to Verifiable Credentials.

  2. Click + New Credential Template.

    Create Credential Template dialog
  3. Fill in the credential template details:

    FieldDescriptionExample
    IdentifierA unique name that becomes the credential scope. Use lowercase with underscores.work_id
    Display NameA human-readable name shown in the wallet.Work ID
    User AttributesThe user attributes include in the credential.given_name, family_name, email
  4. Click Create to save the template.

    Work ID credential template detail page

Step 2: Register a Digital wallet application​

A Digital wallet application represents the digital wallet in WSO2 Identity Platform. It holds the OAuth 2.0 client configuration that the wallet uses to exchange authorization codes for access tokens.

To register a Digital wallet application:

  1. On the WSO2 Identity Platform Console, go to Applications and click + New Application.

  2. Select Digital Wallet Application from the application type list.

    Application type selection highlighting Digital Wallet Application
  3. Fill in the application details:

    FieldDescription
    NameA descriptive name for the wallet application (e.g., Lissi Wallet).
    Authorized Redirect URLThe wallet's OID4VCI callback URL. See your wallet's documentation for this value.
  4. Click Create.

    Digital Wallet Application creation dialog
tip

Refer to the tested wallets section below for the redirect URLs of Lissi, Heidi, and Inji wallets.

Step 3: Allow the wallet to request the credential​

Once the Digital Wallet application is created, you must allow it to request the credential.

  1. In the newly created application, go to Authorize tab and click Authorize Verifiable Credential.

    Authorize Verifiable Credential dialog
  2. Fill in the authorization details:

    FieldDescriptionExample
    Verifiable CredentialThe credential template to authorize for this application.work_id
    Authorization PolicyThe access policy to enforce. Select No Authorization Policy or Role Based Access Control (RBAC) to apply authorization policy.No Authorization Policy
  3. Click Finish.

The application is now allowed to request the work_id credential scope on behalf of an authenticated user.

Step 4: Retrieve the credential offer URI​

The credential offer URI is a link the wallet follows to begin the issuance flow.

To retrieve the offer URI:

  1. On the WSO2 Identity Platform Console, go to Verifiable Credentials and select your credential template (e.g., Work ID).

  2. Locate the Credential Offer section and copy the URI. It appears in the format:

    openid-credential-offer://?credential_offer_uri=https://localhost:9443/oauth2/credential-offer/<offer-id>
note

The WSO2 Identity Platform Console does not generate a QR code. To share the offer with a mobile wallet, paste the URI into an external QR code generator and present the resulting QR code for the wallet to scan.

Tested wallets​

WSO2 Identity Platform has been tested with the following OID4VCI-compatible wallets. Select a tab to see the wallet-specific configuration and steps for claiming the credential.

note

The wallets listed below have been verified for compatibility with WSO2 Identity Platform. Any digital wallet that implements the OID4VCI specification should be able to receive credentials — you are not limited to these wallets.

note

These wallets require a specific client ID to be set when registering the Digital wallet application. The WSO2 Identity Platform Console does not support defining a custom client ID at application creation time. Use the Application Management API to create these clients with the required client ID and redirect URI.

ParameterValue
Client ID9c481dc3-2ad0-4fe0-881d-c32ad02fe0fc
Redirect URIhttps://wallet.lissi.io/lite/vci-cb

Claiming the credential:

  1. Open the Lissi wallet on your mobile device.

  2. Use the wallet's credential receive or QR scan feature, then scan the QR.

  3. The Lissi wallet redirects you to the WSO2 Identity Platform login page. Authenticate with the user account whose attributes you want in the credential.

  4. Review and approve the consent screen if prompted.

  5. The Lissi wallet exchanges the authorization code for an access token and calls the credential endpoint. The signed credential appears in your Lissi wallet.

    Lissi wallet displaying the issued credential

Configure VC attribute mappings​

WSO2 Identity Platform maps user profile attributes to verifiable credential claims using the Verifiable Credentials attribute dialect. Default mappings are pre-loaded for common claims such as given_name, family_name, and email.

To view or update the attribute mappings:

  1. On the WSO2 Identity Platform Console, go to User Attributes & Stores > Attributes.

  2. Under Manage Attribute Dialects, click View on the Verifiable Credentials dialect.

    VC attribute dialect page
  3. Review the available claim mappings. Each mapped claim corresponds to a local claim URI (e.g., http://wso2.org/claims/givenname) that is resolved from the user's profile at issuance time.

note

You can add custom claim mappings if you need to include additional user attributes in your credentials.

What's next​

Was this page helpful?