Allow users to register.
Allow users to change their username.
The name of the app. Used in emails sent to users and as the TOTP issuer.
The URL of the app. Used to define cookie domain, path, and security. Must be accessible to the Tilmeld client JS. (Note, cookies are not specific to individual ports, so tokens will be sent to any port running on this host.)
After the user cancels an address change, redirect them to this URL.
A list of UIDs that can be created from the client by anyone. (newUID)
Inclusion in this list implies inclusion in clientReadableUIDs.
Note: If you'd like to limit the access to logged in users, give them an ability like "uid/new/nameofuid".
A list of UIDs that can be read from the client by anyone. (getUID)
Note: If you'd like to limit the access to logged in users, give them an ability like "uid/get/nameofuid".
A list of UIDs that can be set from the client by anyone. (setUID, renameUID)
Inclusion in this list implies inclusion in clientReadableUIDs and clientEnabledUIDs.
Note: There is no way to run renameUID from the client.
Note: If you'd like to limit the access to logged in users, give them an ability like "uid/set/nameofuid".
Configure an email object to prepare for sending.
You can use this, for example, for DKIM signing.
See: https://github.com/forwardemail/email-templates/blob/v8.0.9/README.md#Options
The domain of the auth cookie.
The path of the auth cookie.
Allow the creation of an admin user. When a user is created, if there are no other users in the system, they will be granted all abilities.
Don't let users change their email address more often than this. You can enter one value and one unit of time, such as "2 weeks". Leave blank to disable rate limiting.
This also controls how long a user has to cancel an email address change from a link emailed to the old address.
The absolute path to the email template directory. Used by the default email sender.
Instead of a "username", a user logs in and is referred to by their email address. Enabling this after many users have been created can be messy. Make sure they all have email addresses first.
Whether frontend can search groups. (Probably not a good idea if privacy is a concern. Same risks as user search if generatePrimary is true.)
Whether frontend can search users. (Probably not a good idea if privacy is a concern.)
Whether to create a new primary group for every user who registers. This can be useful for providing access to entities the user creates.
In the case this is set, the default primary group, rather than being assigned to the user, is assigned as the parent of the generated group.
The GUID of the group above the highest groups allowed to be assigned as primary groups. True means all groups, and false means no groups.
The GUID of the group above the highest groups allowed to be assigned as secondary groups. True means all groups, and false means no groups.
Function to build the JWT for user sessions.
How long from current time, in seconds, the JWT token expires.
Function to verify that a JWT was signed with the secret key, validate its data, validate the XSRF token, and extract the GUID and dates.
If no XSRF token is supplied, ignore it.
Return false if the JWT is not valid, or an object with GUID, issued date, and expire date otherwise.
Optional
xsrfToken: stringHow long, in seconds, before the JWT token expires to give the user a new one.
The secret used to sign the JWT.
How long from current time, in seconds, the JWT token for a user switch expires.
The maximum length for usernames. Infinity
for unlimited.
The minimum length for usernames.
Method used to store passwords. Salt is more secure if the database is compromised. Plain: store the password in plaintext. Digest: store the password's digest (hash). Salt: store the password's digest using a complex, unique salt.
Digests are SHA-256, so a salt probably isn't necessary, but who knows.
Options are: "plain", "digest", "salt"
Allow users to recover their username and/or password through their registered email.
How long a recovery request is valid.
These fields will be available for the user to fill in when they register.
Send an email to a user. Uses email-templates
by default.
Check out the emails
directory to see the templates used.
In addition to the specific locals
for each template, there are
additional locals added by the default email sender:
The path (with leading slash and no trailing slash) where the setup utility is accessible. This is also used for email address verification.
This portion of the app will not check for the XSRF token, so make sure your REST endpoint is not under this URL.
Unverified users will be able to log in, but will only have the "unverified users" secondary group(s) until they verify their email. If set to false, their account will instead be disabled until they verify.
These will be the available fields for users. (Some fields, like username, can't be excluded.)
The address you'd like to receive a notification of registered users, if any.
Only these characters can be used when creating usernames and groupnames. (Doesn't apply to emails as usernames.)
When a user enters an invalid name, this message will be displayed.
Email addresses must match this regular expression. By default, this uses the regex from the W3C HTML email element validation:
https://html.spec.whatwg.org/multipage/input.html#email-state-(type=email)
When a user enters an email that doesn't match the regex, this message will be displayed.
Usernames and groupnames must match this regular expression. (Doesn't apply to emails as usernames.) By default, this ensures that the name begins and ends with an alphanumeric. (To allow anything, use .* inside the slashes.)
When a user enters a name that doesn't match the regex, this message will be displayed.
The validator used to check groups before saving.
The validator used to check users before saving.
After the user verifies an address change, redirect them to this URL.
Verify users' email addresses upon registration/email change before allowing them to log in/change it.
After the user verifies their address, redirect them to this URL.
Tilmeld Config