mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Exercise local LDAP, OAuth, SAML, CAS, SMTP and proxy identity servers through real WeKan login adapters. Fix optional LDAP mapping, simultaneous provider configuration, SAML certificate and profile mapping, async login controls, CAS callbacks and TOTP retry errors. Require consumption of remaining passwordless codes before issuing sessions. Validated 34 Chromium integration checks, seven expanded social profile checks and focused Node regression suites on macOS ARM64. Thanks to xet7 !
2.6 KiB
2.6 KiB
Two-Factor Authentication (TOTP)
Opt-in per-user two-factor authentication (TOTP - the same standard used by
Google Authenticator, Authy, etc.), added for
#3058. It is built on
Meteor's official accounts-2fa package - WeKan only draws the QR code and
enable/disable buttons; the secret generation and code verification is done
by Meteor itself.
Where to find it
Click your avatar/name (top left) → Two-Factor Authentication, in the member menu.
┌ (your avatar) ▾ ─────────────┐
│ Change Settings │
│ Change Color │
│ Notifications │
│ Change Font │
│ Change Avatar │
│ Change Password │
│ ▸ Two-Factor Authentication │ <- here
│ Change Language │
└─────────────────────────────────┘
┌ Two-Factor Authentication ───────────┐
│ Scan this QR code with your │
│ authenticator app: │
│ ┌───────────┐ │
│ │ ▓▓ ▓ ▓▓ │ │
│ │ ▓ ▓▓▓▓ ▓ │ or enter manually: │
│ │ ▓▓ ▓ ▓▓ │ ABCD-EFGH-1234 │
│ └───────────┘ │
│ Code: [______] [Confirm] [Cancel] │
└─────────────────────────────────────────┘
Steps to use it
- Open your member menu and click Two-Factor Authentication.
- Click Enable to start activation.
- Scan the shown QR code with an authenticator app (Google Authenticator, Authy, etc.), or type the manual-entry secret shown under it into the app by hand.
- Enter the 6-digit code the app now generates into the confirm field and submit.
- Once confirmed, the popup shows "Two-Factor Authentication enabled" and a Disable button; from then on, logging in also asks for a 6-digit code.
Prerequisites
- An authenticator app on a phone/device able to scan a QR code or accept a manual TOTP secret.
- Not available when logged in via Sandstorm or via an OAuth2 provider (Google/Azure/OIDC/etc. logins manage their own second factor, if any) - the menu entry only appears for password-based accounts.
Integration tests
See local login protocol tests for example identities, actual request/response checks, failure cases and deployment limitations.