Skip to main content

Module config

Module config 

Source

Structs§

ApplicationConfiguration
AzureBlobStorageConfiguration
AzureChatbotConfiguration
AzureConfiguration
AzureSearchConfiguration
OAuthServerConfiguration
SuotarConfiguration
Where and how to reach Suotar’s moocfi API. In production the base url is https://opetushallinto.cs.helsinki.fi/suoritustarkistin/api/moocfi/.

Constants§

ACCOUNT_LINKING_ENABLED_DEFAULT 🔒
Enrolment discovery, the linking mails and their resends. Off where students get their number linked some other way.
MOCK_SUOTAR_TOKEN
The only token the mock Suotar accepts. Public on purpose: never a real credential.
SUOTAR_AUTH_SCHEME
The scheme word Suotar requires before the API key.

Functions§

bool_env_false_by_default
Reads a boolean env var where missing values default to false.
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.