IDP Kit Setup

Intro

Before you start with the project setup, make sure you have the following dependencies on your local machine:

Getting Started

For running the project, you have two options: Docker or Gradle.

  1. Cloning the project

git clone https://github.com/walt-id/waltid-idpkit.git

2. Changing directory

cd waltid-idpkit

3. Open the project in your feavourite IDEA

4. Create a walt.yaml file in the root directory of the project. Values needed are described in the configuration section.

5. Building the project

./gradlew build install

6. Creating an alias (optional)

alias idpkit="build/install/waltid-idpkit/bin/waltid-idpkit"

Running the IDP-Kit Frontend The frontend with which the user will interact to authenticate by doing a connect wallet.

Change into the frontend directory

cd web/waltid-idpkit-ui/

Install dependencies using node v.16

yarn install 

or 

npm install

Running the project

yarn dev

or 

npm run dev

Configuring the SSI wallet used during authentication

In the verifier config (config/verifier-config.json), we can define the SSI wallet which should be used. For this example, we can use the hosted wallet by walt.id.

{
  "verifierUiUrl":"http://localhost:5000/sharecredential?state=",
  "verifierApiUrl":"http://localhost:5000/api/siop/default",

  "wallets": {
    "walt.id": {
      "id": "waltid",
      "url": "",
      "presentPath": "api/siop/initiatePresentation/",
      "receivePath" : "api/siop/initiateIssuance/",
      "description": "walt.id web wallet"
    },
    "local": {
      "id": "local",
      "url": "",
      "presentPath": "api/siop/initiatePresentation/",
      "receivePath" : "api/siop/initiateIssuance/",
      "description": "local wallet"
    }
  }
}

Last updated