docs(login): an account that only holds API tokens counts as a login (NetOrk/netork#662)
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Failing after 16s
driver / lowest (pull_request) Successful in 34s
driver / types (pull_request) Successful in 1m0s
driver / test (3.12) (pull_request) Successful in 1m13s
driver / test (3.13) (pull_request) Successful in 1m5s
driver / build (pull_request) Successful in 26s
driver / security (pull_request) Successful in 58s
CI / driver (pull_request) Failing after 1m48s
driver / publish (pull_request) Skipped

The API says whether a user has a second factor, not whether it has a
password; a second factor on such an account leaves its tokens alone.
This commit is contained in:
Christian Manivong committed 2026-11-29 00:29:54 +01:00
1 parent f554e2cc79
commit 93ba43071b
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -21,6 +21,10 @@ password alone gets in. So a realm is
- ``password_otp`` when every user of the realm who can log in has a second factor;
- ``password`` otherwise. ``root@pam`` always exists and is often the one without.
The API says whether a user has a second factor, not whether it has a password, so
an account that only holds API tokens counts as a login too. Giving it a second
factor is the fix: its tokens do not ask for one.
A user who is disabled or whose account has expired cannot log in and does not
count; a realm without anyone who can is no source (except OpenID, which can
create its users at their first login). API tokens bypass the second factor by