Auth.Init (auth v1.6.6)

Init as its' name suggests initializes the Auth Application by creating the necessary records in the various tables.

This is the sequence of steps that are followed to init the App:

  1. Create the "Super Admin" person who owns the Auth App based on the ADMIN_EMAIL environment/config variable.

The person.id (1) for the Super Admin will own the remaining records so it needs to be created first.

  1. Create default records (Statuses & Roles)

  2. Create the App and AUTH_API_KEY for the Auth App.

Log the AUTH_API_KEY so that it can be exported.

Link to this section Summary

Link to this section Functions

Link to this function

create_apikey_for_admin(person)