Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.06 KB

auth0.md

File metadata and controls

30 lines (17 loc) · 1.06 KB

Auth0 Setup (optional)

You can optionally configure Auth0 to manage users and authentication.

You will need to set up an Auth0 tenant and store some environment variables.

  • Set up a machine to machine app

    The app needs the following permissions:

    • client_credentials (under Advanced Settings -> OAuth)

    This is used by the backends

    • Store the client id in environment variable AUTH0_MACHINE_TO_MACHINE_CLIENT_ID
    • Store the client secret in environment variable AUTH0_MANAGEMENT_CLIENT_SECRET
  • Set up a single page app

    This is used by the frontend

    There are some steps that you need to take on the Auth0 config for this:

    Then, set the following environment variables

    • domain as AUTH0_DOMAIN
    • client id as AUTH0_SPA_CLIENT_ID