Generating Mock Credentials

This page gives guidance on how to generate mock credentials for testing for SDK and On-Chain and the flows associated.

As developer you may want to generate mock credentials to test agains your applications. Humanity provides a testing playground that is tied both to sandbox environment when working with the SDK / API and Humanity Testnet when working with On-Chain infrastructure.

Step by step guide

  1. Once inside the Dashboard, click on Generate Credentials button.

  1. Generate your mock credentials by

    1. Choose a credential type – Select from Social, Loyalty, Financial, or Palm/Vein tabs below.

    2. Fill in the details – Provide optional username/display name or select a provider.

    3. Click Generate – The credential will be created and added to your account.

  1. Once created you will be able to see your mock credentials from your credentials pagearrow-up-right as well as from your home dashboard screen if you choose you generate mock social connections or palm print or palm vein credential.

In the above screen there is an example of Palm verified + Social Connections mocked credentials (Discord, X and LinkedIn).

How this applies to your developer flow

Working with the SDK / API

Your app can request this mock credentials by selecting them from https://developers.sandbox.humanity.org/arrow-up-right under your app specific settings.

In the image above we are setting our app to request social connections by selecting the identity information scope which includes those fields (Google connected, Facebook connected, Telegram connected, Discord connected). Your app then will request your users for consent to expose the social connections through the OAuth flow.

Working On-Chain

Your dApp can check against these mock credentials as well when working with Testnet . Think of it as the equivalent of the sandbox environment when working with the SDK / API . This way you can, for example, check if a user is a unique human (went through palm or vein scan) and safely test that credential in your dApp. This would also work for any other credential generated through https://app.sandbox.humanity.org/arrow-up-right .

In the image above shows the front end for an dApp deployed on Testnet which is checking a wallet address against the On-Chain Oracle returning the requested credential (with claimID humanity_identity ) for our dApp to determine whether or not a particular wallet address is eligible for an airdrop.

Last updated