Before you start with the project setup, make sure you have the following dependencies on your local machine:
For running the project, you have two options: Docker or Gradle.
Cloning the project
git clone https://github.com/walt-id/waltid-idpkit.git2. Changing directory
cd waltid-idpkit3. 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 install6. Creating an alias (optional)
alias idpkit="build/install/waltid-idpkit/bin/waltid-idpkit"Cloning the project
git clone https://github.com/walt-id/waltid-idpkit.git2. Changing directory
cd waltid-idpkit3. 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.
4. Building the project
docker build --rm -t waltid/idpkit .5. Creating an alias (optional)
alias idpkit="docker run -p 8080:8080 -e WALTID_DATA_ROOT=/data -v $PWD:/data 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 installRunning the project
yarn dev
or
npm run devConfiguring 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"
}
}
}