Setup Authenticate's database

Install PostgreSQL DB

Please follow the official instructions from your cloud or infrastructure provider to install your PostgreSQL DB.

Note: If you don't have any PostgreSQL DB, it is very easy to set up a PostgreSQL docker container from their official repository.

Create DB schemas and DB user

Create two PostgreSQL DB schemas, one for Haventec Authenticate and another one for Haventec Console.

    CREATE DATABASE htauthenticate;
    CREATE DATABASE htconsole;

Create users and make them the owner of the created DB schemas.

    CREATE USER haventec WITH LOGIN PASSWORD 'yourPassword';
    ALTER DATABASE htauthenticate OWNER TO haventec;
    ALTER DATABASE htconsole OWNER TO haventec;

You can use a different USER and DATABASE name but remember to update your configuration with your new values.

Next steps

Install Authenticate