Repository navigation
web/flow: refresh WebAuthn challenge on authentication retry - #26616
Merged
GirlBossRush merged 3 commits intoOct 29, 2026
Merged
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #26616 +/- ##
==========================================
- Coverage 92.43% 92.39% -0.04%
==========================================
Files 1193 1193
Lines 80838 80838
Branches 4497 4497
==========================================
- Hits 74721 74694 -27
- Misses 6051 6078 +27
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
jsachs
marked this pull request as ready for review
October 1, 2026 15:46
GirlBossRush
self-requested a review
October 21, 2026 16:25
GirlBossRush
force-pushed
the
fix/23040-webauthn-retry-challenge
branch
from
October 27, 2026 18:34
4e1f14e to
cf50b6a
Compare
GirlBossRush
approved these changes
Oct 27, 2026
kensternberg-authentik
added a commit
that referenced
this pull request
Oct 30, 2026
* main: (114 commits) website/integrations: add planka sso requirement note (#27376) core: bump ruff from 0.17.2 to 0.17.3 (#27370) core: bump cachetools from 7.2.5 to 7.2.6 (#27372) core: bump coverage[toml] from 7.16.2 to 7.17.0 (#27373) core: bump django from 5.2.17 to 5.2.18 (#27369) core: bump google-api-core from 2.36.0 to v2.43.0 (#27214) core: bump boto3 from 1.43.90 to v1.43.119 (#27208) core: bump googleapis-common-protos from 1.75.3 to v1.76.0 (#27217) core: bump msgpack from 1.2.3 to v1.2.4 (#27235) packages/django-dramatiq-postgres: limit task fetching (#27197) web/admin: make flow execute links base-path aware (#27314) lib: fix capture_logs not thread safe (#27355) web/user: keep configure URL query strings when adding next (#27313) web/flow: refresh WebAuthn challenge on authentication retry (#26616) server, lifecycle: drop idle upstream connections before uvicorn does (#27192) outposts: only write changed permissions, add endpoint to rebuild them (#26928) flows: fix planner not resolving stages causing extra queries (#27320) outposts/proxy: honor X-Forwarded-Host in envoy forward auth (#26888) website/docs: Update wording for internal and external users (#27345) server: strip hop-by-hop headers before forwarding to the application (#27191) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Oct 30, 2026
* main: (115 commits) lib/tracing: use BatchSpanProcessor (#27387) website/integrations: add planka sso requirement note (#27376) core: bump ruff from 0.17.2 to 0.17.3 (#27370) core: bump cachetools from 7.2.5 to 7.2.6 (#27372) core: bump coverage[toml] from 7.16.2 to 7.17.0 (#27373) core: bump django from 5.2.17 to 5.2.18 (#27369) core: bump google-api-core from 2.36.0 to v2.43.0 (#27214) core: bump boto3 from 1.43.90 to v1.43.119 (#27208) core: bump googleapis-common-protos from 1.75.3 to v1.76.0 (#27217) core: bump msgpack from 1.2.3 to v1.2.4 (#27235) packages/django-dramatiq-postgres: limit task fetching (#27197) web/admin: make flow execute links base-path aware (#27314) lib: fix capture_logs not thread safe (#27355) web/user: keep configure URL query strings when adding next (#27313) web/flow: refresh WebAuthn challenge on authentication retry (#26616) server, lifecycle: drop idle upstream connections before uvicorn does (#27192) outposts: only write changed permissions, add endpoint to rebuild them (#26928) flows: fix planner not resolving stages causing extra queries (#27320) outposts/proxy: honor X-Forwarded-Host in envoy forward auth (#26888) website/docs: Update wording for internal and external users (#27345) ...
3 tasks
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.
Details
What does this PR change?
Refresh the flow challenge from the server when the user clicks Retry authentication during WebAuthn validation. The updated challenge starts a new WebAuthn ceremony through the existing component lifecycle.
Also update the selected device's challenge data when a refreshed flow challenge arrives, preserving the selection without sending another selection notification.
Add browser regression coverage for retry after cancellation and server rejection, duplicate retry clicks, and challenge-refresh failures.
Why is this change needed?
Another tab can replace the session's WebAuthn challenge while authentication is in progress. Previously, Retry reused the original challenge without contacting the server, so subsequent attempts could continue failing.
Fetching a fresh challenge alone is insufficient if the parent authenticator stage still passes the previously selected device's stale challenge to the WebAuthn component. This change addresses both parts.
How was this tested?
Edited by maintainer
This PR tidies the retry refresh and trims the unit tests.
refreshasPromise<boolean>onStageHost, the validate stage, andFlowExecutor.refresh(), sinceFlowExecutorhandles its own API errors.FlowExecutor. The two-tab passkey e2e test covers the retry end to end.Linked issues
Closes #23040