Signing in (team)
Admins and editors sign in to the admin with their email address and password, or with a passkey (fingerprint, face or a security key). They can add a second step, a code from an authenticator app, on their Account page. Sign-in runs inside SHADE on the client's own server: nothing goes to an outside service, unless the operator sets up an identity provider (Microsoft, Google or Keycloak) for the team (Identity providers). SHADE's roles, permissions and audit log decide what a signed-in person may do.
This page is about the team, the people who edit the site. Accounts on the website are a separate system: see Accounts.
What users can do
Everyone with an admin account (admins and editors)
- Sign in with email and password. The email is matched case-insensitively.
- Sign in with a passkey instead, when the browser supports it.
- Sign in through the organisation's identity provider, when one is set up (Identity providers).
- When two-factor is on: after the password, enter the 6-digit code from the authenticator app, or one of the backup codes. Optionally tick Trust this browser for 30 days to skip the code on that browser.
- Stay signed in for 14 days without activity; using the admin keeps extending that. A screen left open does not: its own checks in the background (counts in the sidebar, maintenance) never extend the session.
- Sign out (Sign out in the user menu). With unsaved changes it asks first; staying keeps you signed in.
- When your session ends while you work (it expired, or you signed out elsewhere), a banner says so and offers to sign in again in a new tab; what you have not saved stays on the screen. Going to another screen then leads to the sign-in page.
- Reset a forgotten password by email (Forgot your password).
- On the Account page:
- change their own password (needs the current one); their other sessions end, this browser stays signed in;
- turn two-factor on (password, then QR code and backup codes, then a first code) or off (password);
- add passkeys with a name, see them listed, rename and remove them.
Admins
- Set another team member's password (Set password on the Team screen); all of their sessions end. This is also how a team member created without a password gets one. See Team and roles.
- Reset another team member's two-factor (Reset two-factor), for example after a lost phone; they then sign in with only their password and can set it up again.
Limits
- Forgot your password? needs email: without it nothing is sent (the page still answers the same), and a sole admin who lost their password needs someone with access to the server, who can add an admin (Troubleshooting).
- There is no sign-up: admins create accounts.
- AI accounts can never sign in to the admin; they connect over MCP with an API token.
Who may do it
| Action | Permission | Roles |
|---|---|---|
| Sign in, sign out | none | admin, editor; ai: never |
| See own account | signed in, no action permission | admin, editor |
| Change own password, two-factor, passkeys | signed in, plus the current password for password and two-factor | admin, editor |
| Set another team member's password | team.manage | admin |
| Reset another team member's two-factor | team.manage | admin |
Inactive team members are refused like AI accounts. Deactivating a team member ends their sessions.
In the admin
Login page (Sign in to SHADE). Any admin page opened while signed out leads here, and after signing in the editor lands back on that page (only a page of the admin itself, never another site). Someone already signed in who opens the login page goes to the dashboard.
- Email and Password, button Sign in. A wrong email, wrong password, inactive account, AI account or an account without a password all give the same message: Invalid email or password.
- Below it, or / Sign in with a passkey (shown only when the browser supports passkeys). If it fails: Signing in with a passkey did not work. Try again or use your password.
- For editors with two-factor, the form changes to a code step: Code ("Enter the 6-digit code from your authenticator app"), Trust this browser for 30 days, button Verify. The link Use a backup code switches the field to Backup code ("Each code works once"); Use the app instead switches back; Back returns to the password step. A wrong code shows Invalid code.
Account page (via Account in the user menu):
- Profile: name, email and role.
- Password: Current password, New password ("At least 12 characters."), Change password. Success shows Password changed / "Your other sessions have been signed out."
- Security card:
- Two-factor authentication, button Turn on: asks Your password → shows a QR code, the key as text ("No camera? Enter this key in the app:"), the Backup codes with Copy codes, and Code from the app; Turn on again confirms. When on, the card reads "On: signing in asks for a code from your app." and the button is Turn off, which asks for the password again.
- Passkeys (only when the browser supports them): the list of passkeys by name, a name field (placeholder "Name, for example "Work laptop"", default name Passkey), your password and Add passkey; the browser then asks for Touch ID, Windows Hello or a security key. The password comes first because a passkey signs in without it: someone who only has your session cannot add one. A wrong password says "Password is incorrect". The pencil button renames one (audited "Renamed a passkey"); the bin icon removes one after a confirmation ("You can no longer sign in with it.").
Team screen (admins): the row menu has Set password (not for AI accounts or yourself) and Reset two-factor (only when that team member has two-factor on, and not for yourself). The Last login column shows when each team member last signed in. See Team and roles.
The admin is also available in Dutch; the labels above are the English ones.
On the website
Nothing directly: the team signs in to the admin only. Users sign in on the site's /account page with a separate
system, see Accounts.
Rules and limits
- One sign-in, one entry. Each sign-in is recorded once in the audit log, after the two-factor code when one is asked. Changing your password or turning on two-factor keeps you signed in but is not recorded as a sign-in.
- Two-factor timing. The code must follow the password within 10 minutes; Trust this browser lasts 30 days; wrong codes count against the code step's limit (10 per network address in 15 minutes).
- Password checks on the Account page. Changing your password or email, turning two-factor on or off and allowing a passkey together take five tries per quarter of an hour, right or wrong; then "Too many attempts to sign in again. Try again in a quarter of an hour." A wrong password there is recorded in the audit log as a failed sign-in ("Wrong password on the account page"), so a stolen session can't be used to guess the password unseen.
Better Auth within bounds
Sign-in is built on Better Auth, an open-source login library that runs inside SHADE. SHADE uses only the parts of it that were reviewed: email and password, sessions, confirmation and reset emails, two-factor and passkeys, and for the team the client's own identity provider (Identity providers). It does not offer social sign-in (Facebook, a personal Google account…), sign-up through a provider, or other ways to sign in. Better Auth only says who someone is; what they may do is always SHADE's roles and permissions. It stays behind SHADE's own routes and tables: sites speak SHADE's account API, not Better Auth's, and Better Auth keeps its own copy of each account, so it can be replaced without changing a site. Before each release its security advisories are checked (Before each release). Sign-in attempts are limited per address and per account (Request protection). Users confirm their address with the link and their password, never by opening a link alone (Accounts).
Other sites. Sign-in and every other change sent from another website are refused (Request protection), so another site cannot sign a visitor's browser in to an account here.
Passwords
- 12 to 256 characters, no composition rules (following NIST 800-63B). On the login form any non-empty password up to 256 characters is accepted for checking.
- Only a strong hash is stored, never the password, and it is never shown.
- Signing in with an unknown email takes as long as with a known one, so the timing does not reveal which emails have accounts.
- Checking a password takes a lot of memory, so only a few are checked at once; more sign-ins at the same moment wait their turn (a fraction of a second each). The team always goes before users signing in on the site, so a flood of user sign-ins never keeps an editor out of the admin for long. When too many wait, signing in fails with "Too many passwords are being checked at once. Try again in a moment." (in Dutch in a Dutch admin), recorded in the error log.
- When a password cannot be checked at all (the server is out of memory, say), signing in fails with "Internal server error", recorded in the error log, never with "wrong password", and is not counted as a failed sign-in. The same holds for users signing in on the site.
- Changing your own password ends all other sessions and keeps this browser signed in. An admin setting someone else's password ends all of their sessions.
Sessions
- A session lasts 14 days; using the admin more than a day after it was last renewed extends it to a full 14 days again.
- A session belongs to the admin's address only. It remembers the network address and browser it was made from.
- Every check also looks at the account again: an inactive team member's or AI account's session never counts.
- Signing out twice does no harm; only a real sign-out is in the audit log.
Two-factor
- Time-based codes from an authenticator app (issuer SHADE). At least 8 backup codes; each works once. The key is stored encrypted.
- Turning it on needs the password and then a valid first code; turning it off needs the password.
- After the password step you are not signed in yet: only the code finishes signing in.
- Repeated wrong codes lock the code step for a while.
Passkeys
- A passkey works only at the address the team opens the admin at. If the admin moves to another address (for example an address of its own), passkeys have to be set up again there.
Who is refused
- AI accounts and inactive team members never get a session, whatever the method (password, code, passkey). Turning a team member into an AI account removes their password and ends their sessions.
- Team members without a password cannot sign in until an admin sets one (adding a passkey needs to be signed in first).
Forgot your password
- The sign-in page links to Forgot your password?: the editor enters their address and always sees the same answer ("If an account has this address, a link … is on its way"), so the page never tells whether an account exists, not even by how long it takes. Active editors and admins (not AI accounts, not inactive ones) get an email, in their admin language, with a link that works once, for an hour.
- The link opens a page to choose a new password (twice, at least 12 characters). Saving ends every session of the account and makes all its links stop working; a used, expired or made-up link shows "This link is invalid or has expired".
- Both pages are limited like signing in.
- Audit:
team.password"Asked for a password reset link" and "Set own password with an emailed link".
Rate limits
- Password sign-in, the code step and passkey sign-in each allow 10 attempts per network address per 15 minutes (separate limits). Changing addresses within one connection does not reset the limit.
- Per account, however many addresses ask: 20 password sign-ins per 15 minutes, and 3 reset emails per hour. Over the limit the admin shows Too many requests. Try again later. See Request protection.
Audit entries (see Audit log)
| Action | When | Summary |
|---|---|---|
team.login | every new session: password, two-factor or passkey (with the method and a scrambled form of the network address) | Signed in |
team.login-failed | a refused password, or a wrong two-factor or backup code (with the address tried, the method and a scrambled form of the network address; no person) | Failed sign-in / Failed sign-in code |
team.logout | a session was ended by signing out | Signed out |
team.password | own password changed / admin set someone's | Changed own password / Set password of … |
team.security | two-factor on, off or reset; passkey added or removed | Turned on two-factor, Turned off two-factor, Reset two-factor of …, Added a passkey, Removed a passkey |
For developers
The code and its tests: shade/features/team/README.md in the shade repository.