Server: Running Locally
The Liquid Auth service is distributed as a Docker image. FIDO2 and WebRTC require a secure connection, we recommend using ngrok to create a secure tunnel to your local server. See the server integrations guide for examples of how to add Liquid Auth to a web application.
Prerequisites
Install Docker and login to the GitHub Container Registry.
Docker Image
The service is designed to be run in a Docker container, it requires a MongoDB and Redis instance to be running.
See the Environment Variables section for more information about crafting a .env.docker
file.
Compose Example
Example of using Docker Compose to run the Liquid Auth service.
Building
Optionally, create the Docker image locally from the source:
NGROK
Sign up for a free account at ngrok and follow the instructions to get your <NGROK_AUTH_TOKEN>
and <NGROK_STATIC_DOMAIN>
.
Configuration
ngrok will ask you to add your auth token to your configuration file.
It will then ask you to deploy your static domain, make sure to change the port to 3000 like this:
Ensure the service’s ORIGIN
and HOSTNAME
environment variables are configured correctly with the ngrok domain.