Setup Development Environment

Auth Server Setup


  1. Clone didPass repository then checkout to development branch

git clone https://github.com/GDP-ADMIN/didPass.git
  1. Copy auth-server .env.example as .env and Set Environment Variables in .env

Set Environment Variables


  1. Setup Auth0

    1. Create new Application, select Native

      Auth0 Create New Application
    2. Select React Native as the Native SDK

    3. Go to your application (from step 1 & 2) settings on Auth0 site

    4. Copy Domain to APP_ISSUER value and JWKS_URL value

      APP_ISSUER=https://<placeholder(Auth0 Application Domain)>/
      JWKS_URL=https://<placeholder(Auth0 Application Domain)>/.well-known/jwks.json
    5. Copy Client ID to APP_AUDIENCE value

      APP_AUDIENCE=<placeholder(Auth0 Application Client ID)>
  2. Setup Pinata

    1. Create new API KEY, check the Admin option and set the Key Name (any name)

      Pinata Create New Key
    2. Click Create Key Button

    3. Copy the API Key on pinata's site to PINATA_API_KEY

      PINATA_API_KEY=<placeholder(Pinata API key)>
    4. Copy the API Secret on pinata's site to PINATA_SECRET_API_KEY

      PINATA_SECRET_API_KEY=<placeholder(Pinata Secret API key)>
  3. Run ngrok ngrok http 3000, copy forwarding url and fill NEXT_PUBLIC_URL value.

NEXT_PUBLIC_URL=<placeholder(ngrok Forwarding URL)>

Here is the full .env

APP_ISSUER=https://<placeholder(Auth0 Application Domain)>/ #(example: https://tenant.region.auth0.com/)
APP_AUDIENCE=<placeholder(Auth0 Application Client ID)> #Client ID of your Auth0 application
JWKS_URL=https://<placeholder(Auth0 Application Domain)>/.well-known/jwks.json #{APP_ISSUER}/.well-known/jwks.json
PINATA_API_KEY=<placeholder(Pinata API key)>
PINATA_SECRET_API_KEY=<placeholder(Pinata Secret API key)>
NEXT_PUBLIC_URL=<placeholder(ngrok Forwarding URL)>
KEY_ID=v1

Last updated