Skip to main content

Module config

Module config 

Source

Structsยง

ApplicationConfiguration
AzureBlobStorageConfiguration
AzureChatbotConfiguration
AzureConfiguration
AzureSearchConfiguration
OAuthServerConfiguration
SuotarConfiguration

Constantsยง

FAST_TRACK_EMAIL_MATCH_ENABLED_DEFAULT ๐Ÿ”’
Auto-links a student number when Sisuโ€™s address matches a verified account email. The same flag is the kill switch that stops it during an incident.
FAST_TRACK_MAX_EMAIL_VERIFICATION_AGE_DAYS_DEFAULT ๐Ÿ”’
Days an email_verified_at may be old and still count as fast-track proof. Bounded because a deprovisioned university address can be reissued to somebody else.
MOCK_SUOTAR_TOKEN
The only token the mock Suotar accepts. Public on purpose: never a real credential.
SUOTAR_AUTH_SCHEME
TODO: Suotar has not confirmed whether they want Basic or Bearer; Basic is what they already accept on the legacy study-registry path.

Functionsยง

bool_env_false_by_default
Reads a boolean env var where missing values default to false.
i64_env_or ๐Ÿ”’
Reads an integer env var, falling back to default when unset, blank or unparseable.
non_empty_env ๐Ÿ”’
Reads an env var, treating a blank value the same as an unset one.
parse_join_base ๐Ÿ”’
Parses a Url::join base, adding the trailing slash one needs: joining onto a base without it replaces the baseโ€™s last path segment instead of extending it.