Skip to content

Sign in with security keys - #17

Open
0x46616c6b wants to merge 1 commit into
mainfrom
feature/webauthn
Open

0x46616c6b wants to merge 1 commit into
mainfrom
feature/webauthn

Conversation

@0x46616c6b

Copy link
Copy Markdown
Member

Summary

Users with security keys (WebAuthn) in Userli can now use them to sign in to Roundcube. Before, users with only security keys had to enter a backup code for every webmail login and used them up.

After the password, Userli sends the request options with a new single-use challenge for users with security keys. The code step then shows a Use security key button next to the code field. userli.js passes the options to the browser and submits the assertion in a hidden field. The plugin sends it to Userli together with the challenge from its own session, and Userli verifies it like a code. TOTP and backup codes keep working in the same step, and a rejected key gets a new challenge for the next try.

Security keys are bound to a domain, so Userli and Roundcube need a common parent domain as Security Key Domain and the Roundcube origin in Additional Security Key Origins. The README links to the Userli docs for that and shows the new step.

Needs the Roundcube API of systemli/userli#1415.

🤖 Generated with Claude Code

Users with security keys get a "Use security key" button in the code
step. userli.js passes the options from Userli to the browser and submits
the assertion, which the plugin sends to Userli with the challenge from
its session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0x46616c6b 0x46616c6b added the enhancement New feature or request label Oct 31, 2026
@0x46616c6b
0x46616c6b marked this pull request as ready for review November 1, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant