Problem
Stalwart’s web login (/login, used for the built-in OpenID provider, the account portal and the admin UI) only offers username + password, optionally with a TOTP code. For a family or small-team setup where Stalwart is the identity provider for several apps, passwords plus TOTP are the main usability hurdle – especially on phones. Passkeys are now supported by all major browsers and platforms and would be both easier and phishing-resistant.
I searched the forum and the source (main, 2026-10-15) and found no existing request or code for WebAuthn/passkeys.
Proposal
- Register passkeys in the account portal (
/account): add, name, list and remove passkeys per account, next to password, TOTP and app passwords. - Sign in with a passkey on
/login(WebAuthn Level 3, discoverable credentials): a “Sign in with a passkey” button, ideally with conditional UI (autofill). This should work for every flow that uses the login page, including the OAuth/OIDC authorization flow for third-party clients. - As a second factor: optionally allow a passkey/security key instead of a TOTP code after the password.
- Admin controls: enable/disable per tenant or role, and an option to require a passkey or TOTP for certain roles (e.g. admins).
- Passkeys never replace app passwords for IMAP/SMTP/DAV – those protocols stay as they are.
Why
- Phishing-resistant sign-in for the account that also controls the mailbox.
- Fewer password resets in family setups; no TOTP app needed for less technical users.
- Fits well with the request for an SSO session in the OIDC provider (t/1961): one passkey sign-in, then all connected apps.
Setup
Stalwart v0.16.25 (Docker), RocksDB, internal directory, built-in OIDC provider used by Immich, OpenCloud, Vikunja, Papra, Kutt and Bulwark.