Passkeys: say up front when adding one would be refused #248

Merged
jcoffey-dev merged 1 commits from feat/passkeys-off-upfront into main 2026-11-19 05:49:21 +00:00
Owner

Part of #334. Same rough edge as in the webmail: on the signed-in admin's own account, the Passkeys card offered "Add a passkey" even when the server would refuse it.

  • Reads passkeysAllowed and maxPasskeys from the session's urn:inbuxa:jmap capability (inbuxa-server passkeys spec PK-19).
  • Off, or at the limit: the card says so in place of the add field. Listing, rename, remove and "Remove all" are unchanged.
  • A server that doesn't send the fields: the add field shows as before.
  • Existing strings only.

Checked locally: typecheck, lint, i18n:check, tests (1147, one new), the three shell tests, build, notice-check.

Part of #334. Same rough edge as in the webmail: on the signed-in admin's own account, the Passkeys card offered "Add a passkey" even when the server would refuse it. - Reads `passkeysAllowed` and `maxPasskeys` from the session's `urn:inbuxa:jmap` capability (inbuxa-server passkeys spec PK-19). - Off, or at the limit: the card says so in place of the add field. Listing, rename, remove and "Remove all" are unchanged. - A server that doesn't send the fields: the add field shows as before. - Existing strings only. Checked locally: typecheck, lint, i18n:check, tests (1147, one new), the three shell tests, build, notice-check.
jcoffey-dev added 1 commit 2026-11-19 05:46:37 +00:00
Passkeys: say up front when adding one would be refused
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / notices (pull_request) Successful in 16s
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m12s
e098f83afc
The session's urn:inbuxa:jmap capability now carries passkeysAllowed and
maxPasskeys (inbuxa-server passkeys spec PK-19). On the signed-in admin's
own account, the Passkeys card shows that passkeys are off, or that the
account is at its limit, instead of the add field. A server that doesn't
send the fields gets the add field as before.
jcoffey-dev merged commit 7a0f8416fe into main 2026-11-19 05:49:21 +00:00
jcoffey-dev deleted branch feat/passkeys-off-upfront 2026-11-19 05:49:21 +00:00
Sign in to join this conversation.