authentication

Model for authentication state and login support checks, including password authentication flow helpers and reminder/verification actions.

Available Model API Paths

MethodPath patternDescription
get/authenticate/password/...Validate username/password and return auth payload with short-lived auth.token and cookie.token plus cookie exchange URL.
get/password_min_length/...Return configured minimum password length (mod_authentication.password_min_length, default 8).
get/is_one_step_logon/...Return site setting mod_authentication.is_one_step_logon.
get/is_supported/rememberme/...Return whether remember-me authentication is supported (requires active database connection).
get/status/...Return authentication status map with is_authenticated, user_id, username, language/timezone preferences, and auth options.
get/is_rememberme/...Return site setting mod_authentication.is_rememberme.
post/request-reminderRequest password-reset reminders for payload email; sends reset mail(s) to matching accounts and returns normalized email.
post/service-confirmDecode and validate signed auth payload (auth + url) and complete authentication confirmation flow.
post/service-confirm-passcodeDecode and validate signed auth-user payload, verify passcode, then complete authentication confirmation flow.
post/send-verification-messageValidate signed verification token and, if still valid, trigger identity-verification message delivery.
post/acceptable-passwordValidate password against min-length/regex policy and leak-check policy (ok, tooshort, or dataleak).

/+name marks a variable path segment. A trailing /... means extra path segments are accepted for further lookups.

Edit on GitHub