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:
- 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.
Create default records (Statuses & Roles)
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_admin()
Link to this function
create_apikey_for_admin(person)
Link to this function