# Generating Mock Credentials

As developer you may want to generate mock credentials to test against your applications.

Humanity provides a testing playground through a credentials generator 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. Go to <https://app.sandbox.humanity.org/> and Sign up or Log in.
2. Once inside the Dashboard, select the ***Create tab*** and search for the credential you want to generate.

> ℹ️ A complete list of scopes and presets and how they are bundled is here [SDK OAuth Scopes and Presets](/build-with-humanity/build-with-the-sdk-api/sdk-oauth-scopes-and-presets.md)

In the example below we are going to create a mock credential for ***Telegram*** which is included under `identity information` and part of the  `social_accounts` preset.

<figure><img src="/files/waY2J6GGj382Btpe2FbK" alt=""><figcaption></figcaption></figure>

Select the credential then click ***Generate Credential*** to complete the process.

<figure><img src="/files/zzQhWdJhZpvKDS16269Z" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/exovokhdgODCof2MmCmM" alt=""><figcaption></figcaption></figure>

Once created, you can view all your current active credentials as well as delete them from the View/Delete tab.

<figure><img src="/files/bCC6GtFwomwKusykGOKx" alt=""><figcaption></figcaption></figure>

## How this applies to your developer flow

### Working with the SDK / API

Visit <https://developers.humanity.org/> and select the application you want to work with.

<figure><img src="/files/4KlCtE8zkN2rai8ZiXQE" alt=""><figcaption></figcaption></figure>

Then go to **Settings** tab and select the scopes your application is going to request matching the mock credentials you generated from the Credentials Generator.

{% hint style="warning" %}
Make sure you are under ***sandbox*** tab when selecting your app scopes.
{% endhint %}

<figure><img src="/files/KOMFYRyZdqSq5IymfXmL" alt=""><figcaption></figcaption></figure>

In the example below we are setting our app to request **`social_accounts`** by selecting the **`identity information`** mapped as **`identity:read`** scope which includes those fields (Google connected, Facebook connected, ***Telegram connected***, Discord connected).

<figure><img src="/files/iB8Q3X5MkrNk9CP4516l" alt=""><figcaption></figcaption></figure>

Your app then will request your users for consent to expose the `identity:read` scope which included the `social_accounts` presets through the OAuth flow so you can check your app against your generated mock credentials.

<figure><img src="/files/xu3NkYjSqyob3DFYLUw8" alt=""><figcaption></figcaption></figure>

### 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/> .<br>

<figure><img src="/files/9hiN1mNMuaXV5btUCle4" alt=""><figcaption></figcaption></figure>

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.

\ <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.humanity.org/developer-guides-and-tutorials/generating-mock-credentials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
