Skip to main content

Load the credential into the wallet

Using API

To loadLoad the credentialX509Credential into the care organization's wallet on the Nuts node. The node viauses itscredentials REST API, performfrom the followingwallet HTTPwhen request:it registers on the Discovery Service and when it requests access tokens.

The same steps work for any other credential you receive for the care organization.

Before you start

    The care organization has a subject (see "Create a subject"). You have the X509Credential as a JWT (see "Get an X509Credential from a UZI certificate").

    Using the API

    POST <internal Nuts interface>/internal/vcr/v2/holder/<subjectID>/careorg-a-acc/vc
    Content-Type: application/json
    
    "<JWT>eyJ..."
    

      Replace <subjectID>careorg-a-acc with the subject,subject andID. The body is the JWT as a JSON string: the JWT in double quotes. The node returns <JWT>204 No Content withon success. It returns 400 Bad Request if the credential inis JWTinvalid, formatfor (example when it was issued to a JSONDID stringthat encloseddoesn't inbelong doubleto quotes)this

      subject, or when it has expired.

      Using Nuts Admin

      1. Log in to the care organization’s Nuts Admin application.Admin.
      2. Click on “Identities”"Identities".
      3. Click on the walletcare toorganization's load the credential into (there should be only one).wallet.
      4. Click on “"Load Credential”Credential".
      5. Enter/pastePaste the credential in the input field.
      6. Click on “"Load credential”credential".

      Check that it worked

      List the credentials in the wallet:

      GET <internal Nuts interface>/internal/vcr/v2/holder/careorg-a-acc/vc
      

      The result should contain a credential with type X509Credential.

      API reference: Verifiable Credential Registry (v2)