4 ms·
Can you elaborate a bit on how Passkeys differ from WebAuthn/FIDO2? I know they're an implementation of it, but I don't know how pluggable they are. Will I be a
by stavros 4y ago
Can you elaborate a bit on how Passkeys differ from WebAuthn/FIDO2? I know they're an implementation of it, but I don't know how pluggable they are. Will I be able to use my soft- or hardware WebAuthn authenticator on any site that uses Passkeys?
I tried to add a FIDO2 key to Google's passkey page and failed already, so it doesn't seem entirely compatible out of the box.
- cmdli 4y agoPasskeys are just the product-facing name for WebAuthN, which FIDO2 devices should support. Theoretically, any FIDO2 device should support WebAuthN and therefore be used for websites, but right now there are a number of different implementations that each have their own quirks. I am surprised that the FIDO2 key doesn't work on Google, but it probably just means that there is a bug somewhere in the implementation.
- stavros 4y agoThanks, that's what I figured. Here's to a future where WebAuthn is everywhere and my password manager can finally only need to store one key.
- crote 4y agoThis is not true, Passkeys is the marketing term for Webauthn with resident keys.
- sebk 4y agoIt's surprisingly difficult to figure what what a passkey is, precisely. I think there's a bit of a terminology issue. FIDO marketing materials talk about passkeys in the same way you do, a resident key (now called discoverable credentials). Some other materials say that passkey with no other qualifier is a multi-device passkey, meaning it's backed up by a sync fabric. (e.g. the short version here https://passkeys.dev/docs/reference/terms/#passkey https://passkeys.dev/docs/reference/terms/#passkey). Others, like Google did in their blogpost last week and the long version of that link, say that a passkey is a multi-device passkey that also has user verification (so it can be used for passwordless and not just 2FA/2SV).
- crote 4y agoBasically, Webauthn works by having the token sign some data using a per-website private key. The default U2F/FIDO2 model was to use a single secret on the token, and deterministically generate a public-private keypair as required. At registration the token provided some opaque bytes to the website, and the website must supply those bytes back to the token when trying to authenticate. Registration: 1. Token generates random seed 2. Token calculates public/private keypair by combining seed with global secret 3. Token signs registration request using private key 4. Token returns seed, public key, and registration request to server 5. Server stores seed and public key in user's database entry Authentication: 1. User provides username 2. Server looks up user's seed and public key in user database 3. Server provides seed to token 4. Token calculates public/private keypair by combining seed with global secret 5. Token signs authentication request using private key 6. Token returns signed authentication request to server 7. Server validates authentication request against stored public key, and user is now authenticated The biggest benefit of this is that the token is quite trivial to create as there is no need to store a per-website secret on it. One secret can be securely used to authenticate with an infinite number of websites without any security or privacy risks. Passkeys use resident keys. This basically means that the seed is not stored on the server, but on the token. The biggest benefit of this is that you can also get rid of the username in the authentication process. Registration: 1. Token generates public/private keypair 2. Token signs registration request (which includes unique token identifier) using private key 3. Token stores private key, together with website URL 4. Token returns public key, and registration request to server 5. Server stores public key and unique token identifier in user's database entry Authentication: 1. Token looks up public/private keypair using website URL 2. Token signs authentication request 3. Token returns authentication request and unique token identifier to server 4. Server looks up user's entry in user database by unique token identifier 5. Server validates authentication request against stored public key, and user is now authenticated And before you ask: no, I have no idea how this is supposed to work if you have multiple accounts on the same website either.
- stavros 4y agoMultiple accounts on the same website can be handled by the token prompting the user to select the key to use (as Passkeys do). It's not in the standard, though, so it'll have to be something custom.
- scott00 4y agoPasskeys are Webauthn credentials, but Webauthn credentials are not necessarily Passkeys. As best I can tell, Passkeys are _discoverable_ Webauthn credentials. Most hardware tokens don't support discoverable credentials.