Repository navigation
Sign in with security keys - #17
Open
0x46616c6b wants to merge 1 commit into
Open
0x46616c6b wants to merge 1 commit into
0x46616c6b wants to merge 1 commit into
Conversation
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
marked this pull request as ready for review
November 1, 2026 09:30
0x46616c6b
requested review from
doobry-systemli,
t2d and
y3n4
as code owners
November 1, 2026 09:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jspasses 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