feat(access): one-time codes by email for a whitelist #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/email-otp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
feat/two-factor).Changes
email_otp_enabledand a whitelist (alice@example.com,@example.com; a domain does not include subdomains). Switching it on needs a non-empty whitelist and a mail server. Off by default.Secrets.mac), work once (atomic claim, also under racing requests), expire after 10 minutes and die after 5 wrong tries.Remote-Email(noRemote-User).email,allowed_emails, in the OpenAPI document) and blueprints (access.email_codes, exported when on; a non-empty list turns codes on). Sign-ins and failures are audited with the address.emailform value crashed the endpoint; fixed.Verification
mix format --check-formatted,mix compile --warnings-as-errors,mix credo --strict,mix dialyzer: clean.mix test: 1387 passed on SQLite and PostgreSQL (whitelist parsing, settings, request and login flows, throttling, expiry, attempts, single use, revocation, controller, LiveView, API, blueprints incl. round trip).