Skip to content
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

DEV: Add UI for passkeys (3/3) #23591

Closed
wants to merge 3 commits into from
Closed

Conversation

pmusaraj
Copy link
Contributor

@pmusaraj pmusaraj commented Sep 14, 2023

Part 3 of 3. See #23587 and #23586 first. (This one is in a more draft state than the other two. Original big PR at #23529)

This is part 1 of 3, split up of PR #23529. This PR refactors the
webauthn code to support passkey authentication/registration.

Passkeys aren't used yet, that is coming in PRs 2 and 3.
This is part 2 (of 3) of the passkeys feature. (Original PR #23529)

This adds a hidden site setting plus routes and controller actions.

1. registering passkeys

Passkeys are registered in a two-step process. First, `create_passkey`
returns details for the browser to create a passkey. This includes
- a challenge
- the relying party ID and Origin
- the user's secure identifier
- the supported algorithms
- the user's existing passkeys (if any)

Then the browser creates a key with this information, and submits it to
the server via `register_passkey`.

2. authenticating passkeys

A similar process happens here as well. First, a challenge is created
and sent to the browser. Then the browser makes a public key credential
and submits it to the server via `passkey_auth_perform`.

3. renaming/deleting passkeys
@pmusaraj pmusaraj changed the title DEV: Add UI for passkeys DEV: Add UI for passkeys (3/3) Sep 14, 2023
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/support-for-apples-passkeys-system/229259/32

@pmusaraj pmusaraj force-pushed the passkeys-part-2 branch 2 times, most recently from 23831b7 to 43aaf4e Compare October 5, 2023 23:52
@pmusaraj
Copy link
Contributor Author

pmusaraj commented Oct 9, 2023

Superseded by #23853

@pmusaraj pmusaraj closed this Oct 9, 2023
@pmusaraj pmusaraj deleted the passkeys-part-3 branch February 27, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants