You can run Mist alongside your application locally using Docker Compose. An example is provided.

Getting it up and running

  1. Set a master key. Realistically, you’d want to store this somewhere safe.
MASTER_KEY=$(openssl rand -hex 32)
  1. Download the example Docker Compose file and run it.
curl -LO https://github.com/mist-id/mist/blob/main/local/docker-compose.yml

docker-compose up
  1. Create a service. This is the application you want users to sign in to. You can find out more about the service API here.
curl -X POST -H "Content-Type: application/json" -H "Authorization: ${MASTER_KEY}" --raw-data \
    '{ "name": "ACME", "redirect_url": "...", "logout_url": "...", "webhook_url": "..." }' \
    localhost:9001/services