-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
stages/identification: Add WebAuthn conditional UI (passkey autofill) support #18377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
94cbed2
add passkey_login to identification stage
melizeche 9812894
handle passkey auth in identification stage
melizeche e9a191c
Add passkey settings in identification stage in the admin UI
melizeche aa7c5ad
Add UI changes for basic passkey conditional login
melizeche 5a64945
Fix linting
melizeche 40b9d04
rework
BeryJu fcdcfb4
fix merge conflicts
melizeche 5654529
update tests
melizeche eab77ab
update admin form
melizeche 13213b3
allow passing stage to validate_challenge_webauthn
melizeche ba433c2
update flows/tests/test_inspector.py
melizeche 85ce3d0
update for new field
melizeche 2a999c5
Fix linting
melizeche c4c4117
update go solvers for identification challenge
melizeche 625e4b5
Refactor tests
melizeche 5224651
Skip mfa validation if user already authenticated via passkey at iden…
melizeche 96a2962
Add skip_if_passkey_authenticated option to authenticator validate st…
melizeche 6a6371c
Add e2e test for passkey login conditional ui
melizeche 3e5a78a
Merge branch 'main' into passkey_conditional
melizeche 619d7e0
add policy
BeryJu fc5a04f
Remove skip_if_passkey_authenticated
melizeche 2c065cc
fix blueprint
melizeche a80d97b
Set backend so password stage policy knows user is already authenticated
melizeche bb5958d
Set backend so password stage policy knows user is already authenticated
melizeche 9a7f2fb
fix linting
melizeche 01878bf
Merge branch 'main' into passkey_conditional
melizeche 6b44e3e
Merge branch 'main' into passkey_conditional
melizeche 5bc944f
slight tweaks
BeryJu 056830b
simplify e2e test
melizeche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
29 changes: 29 additions & 0 deletions
29
authentik/stages/identification/migrations/0017_identificationstage_webauthn_stage.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Generated by Django 5.2.8 on 2025-11-26 16:09 | ||
|
|
||
| import django.db.models.deletion | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ( | ||
| "authentik_stages_authenticator_validate", | ||
| "0014_alter_authenticatorvalidatestage_device_classes", | ||
| ), | ||
| ("authentik_stages_identification", "0016_identificationstage_enable_remember_me"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name="identificationstage", | ||
| name="webauthn_stage", | ||
| field=models.ForeignKey( | ||
| default=None, | ||
| help_text="When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor.", | ||
| null=True, | ||
| on_delete=django.db.models.deletion.SET_NULL, | ||
| to="authentik_stages_authenticator_validate.authenticatorvalidatestage", | ||
| ), | ||
| ), | ||
| ] |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.