Login With IOTA
Learn how to build a login with IOTA use-case
In this tutorial, you will learn how to configure the wallet kit + other needed frontend projects to build a Login With IOTA use-case. The tutorial is divided into two sections. First, we will set up and configure the backend handling the business logic, followed by the frontend projects which are provided for an easy and fast lauch.
Setting up the backend
Cloning the Wallet-Kit
Make sure you have Docker installed on your machine
Cloning the project
2. Change directory
3. Running the project
Create the IOTA policy
To make sure only Verifiable Credentials with a "did:iota" can pass the verification (login), we will create a policy and use it in our verifier configuration.
IOTA policy
Registering the policy
The Wallet-Kit has multi tenant support, which means multiple customers, or tenants, can use a single instance of the wallet-kit, with each tenant having their own data and configurations isolated from others. And we will now create + use our IOTA tenant to register the policy
Create the IOTA Tenant + configuration
The Wallet-Kit has multi tenant support, which means multiple customers, or tenants, can use a single instance of the wallet-kit, with each tenant having their own data and configurations isolated from others. And we will now create our IOTA tenant to handle all IOTA related operations.
First, we get the configuration of the default tenant and use it as a baseline for the configuration of our IOTA tenant.
Using the response, we just got from the default tenant configuration, we will update additionalPolicies
as well as the verifierApiUrl
as follows:
Let's now set the above configuration object as the configuration for our IOTA tenant.
Setting up the frontend
To have the fully working Login With IOTA Demo up and running, we need three more projects:
The Waltid-Wallet - To create an IOTA DID and get a Verifiable Credential based on an IOTA DID issued
The Waltid-Issuer-Portal - The application responsible for issuing a Verifiable Credential to the DID IOTA holder (Wallet)
The Waltid-Verifier-Portal - The application in which the holder will log in to using a Verifiable Credential based on a DID IOTA
Wallet
Make sure you have node.js installed on your machine
Cloning the project
2. Change directory
3. Install dependencies
4. Run the project
Issuer Portal
Cloning the project
2. Change directory
3. Install dependencies
4. Run the project
Verifier Portal
Cloning the project
2. Change directory
3. Checkout feat-iota brunch
4. Install dependencies
5. Run the project
Let's log in with IOTA
Now that we have the backend and all frontend applications up and running, we can start the Login with IOTA flow.
Last updated
Was this helpful?