r/Passkeys • • 9d ago

Ten Commandments For Passkey Implementations

Ten Commandments For Implementations of Passkeys on Public Facing Websites.

  1. Thou shalt not restrict the user's operating system, browser, authenticator type (synced/device-bound) or attachment (platform/cross-platform)
  2. Thou shalt allow for at least three passkeys to be created
  3. Thou shalt allow individual passkeys to be renamed and deleted
  4. Thou shalt not implement non-discoverable credentials as passkeys
  5. Thou shalt not use passkeys only as a second factor to passwords
  6. Thou shalt prevent duplicate passkey registrations
  7. Thou shalt not silently create, or "trick" users into creating, a passkey  
  8. Thou shalt email the user when a passkey is added or removed from their account
  9. Thou shalt have an automated account recovery process, or require users to register at least two passkeys 
  10. Thou shalt allow users (or automation) to disable legacy authentication methods (without using those legacy methods) after passkey registration, but only after user approval or a set number of days/authentications successfully using passkeys

Follow these laws to avoid your users staying on legacy authentication methods or endless account recovery requests.

121 Upvotes

33 comments sorted by

11

u/JimTheEarthling 9d ago

These are quite good except for #4. Passkeys are discoverable credentials and nothing else. (As defined by the FIDO Alliance.)

Although you could change #4 to "Thou shalt not create non-discoverable credentials and call them passkeys."

And I would revise #1 to "type (synced/device-bound ) or attachment (platform/cross-platfrom)"

5

u/bytecode36 9d ago

Good points. Updated.

1

u/Lode2736 6d ago

But using non-discoverable credentials for log-in is technically possible as a replacement for passwords, I would actually appreciate this option if it was available. However, in that case, I would like to be able to choose between discoverable and non-discoverable. But I've never seen this.

I think there is a lot of room for improvement in regards to how these technologies are used and implemented.

4

u/JimTheEarthling 6d ago

Sure, non-discoverable credentials are fine, and they don't use up slots in a hardware security key, but...

  • They aren't passkeys. Calling them passkeys confuses people. Username or ID is required, so authentication steps are different.
  • They usually don't appear in the credential manager along with actual passkeys, which confuses people even more. "Where did my passkey go?!"

Some websites call them "secure credentials" or "security keys" (which gets confused with hardware security keys)." It would be nice to have a consistent, industry-standard term to distinguish them from passkeys.

3

u/yarntank 8d ago

5. Why can't I use a passkey with other factors if I want?

2

u/cavyjester 8d ago

I second this question. Why shouldn’t a user like me at least have that option if I want it?

1

u/bytecode36 7d ago

Updated.

1

u/bytecode36 7d ago

Fair enough. I changed the word "simply" to "only". Leaving open the option to use passkeys with a password if the user chooses to do so, but it should not be the only authentication path.

1

u/patmorgan235 8d ago

If it's configurable and you want to add other factors sure, but don't Force me to use a username, password, and a passkey.

2

u/silasmoeckel 9d ago

1 Restrict no tell them they are an idiot and potentially block other parts of this yes. Exception if it's a known vulnerability exploitable without hardware access just block it till it's fixed.

9 Add in recovery codes and/or dial a friend, plenty of phone only users that will only ever have a single device.

10 See #9 even test to see they have the recovery codes after some time.

3

u/bytecode36 9d ago

I would count recovery codes or dial a friend as an automated account recovery process. Automated meaning the service provider does not need to be involved in recovering your account.

2

u/Ok_Class2432 6d ago

Solid list and the only missing one is 11. Thou shalt not make the user enter their password to delete their password, because if the passkey is supposed to replace it then keeping the password as the gatekeeper just defeats the whole point😂

1

u/bytecode36 6d ago

Agreed. But I just updated #10 to indicate that disabling legacy authentication methods should not require the legacy authentication methods themselves.

16

u/cobaltjacket 9d ago

Can we pin this?

12

u/Ok-Lingonberry-8261 9d ago

  Thou shalt have an automated account recovery process, or require users to register at least two passkeys

The gmail subreddit, LOL. People keep creating a passkey then wiping their phone, then making surprised Pikachu face when their stuff is locked. 

8

u/yarntank 8d ago

Passkey implementations I've seen are bad at explaining where the passkeys are actually being stored.

1

u/yawaramin 10m ago

Because they don't know. Where it's stored is up to the user.

1

u/MegamanEXE2013 8d ago

This is true. And here as well we have seen passkeys being deleted.

That's why I don't agree with most "commandments" here

1

u/Ok-Lingonberry-8261 8d ago

I prefer hardware keys for these reasons, but best practices to protect people from themselves could be developed. 

10

u/unndunn 9d ago

Amen.

1

u/Beet_slice 9d ago

What does #4 mean?

Secondarily, what does #6 mean?

1

u/bytecode36 9d ago

2

u/rob94708 8d ago

“Registering the same passkey twice“ is a confusing way of saying this, because it wouldn’t be the same passkey. Something like “registering two different passkeys for the same service on the same device“ is, I think, what you mean.

2

u/HonestDisguise 7d ago

Same account, on the same service, on the same device. Otherwise you've just broken multiple accounts.

2

u/AJ42-6802 8d ago

This looks great and extremely user focused.

On the security side I would add that developers should be capturing AAGUID's and implementing platforms should be providing these. No need to do anything with them yet, but capturing now will have huge advantages for the ecosystem and the users. In the next few months/years this ecosystem is going to be attacked more by Hackers/AI/Malware and the ecosystem will need to react.

We've already seen mSecure's solution get attacked and there have been papers on xKeypass and Chromium based browsers and this is only going to get worse. By capturing and requiring AAGUID's now and storing these for later the security of this FIDO infrastructure can be updated to no longer trust individual compromised parts, and compromised users can move to more secure solutions more seamlessly. The alternative to doing this could be that you force all your users to re-enroll later in order to capture an AAGUID.

AAGUIDs are going to become an important way to maintain the high security that the passkey infrastructure has and failing to capture these now may cause huge re-enrollment problems that can be avoided later.

1

u/gripe_and_complain 8d ago

Thou shalt allow users to create an account recovery code that can be printed and stored in a safe place.

-3

u/MegamanEXE2013 8d ago

Sorry, but most of them won't even apply

  1. Google Passwords only works on Android and Chrome, forget Firefox or other stuff, and it is by design
  2. Why 3? Why not just 2? Or 22 like me? What is the logic behind 3?
  3. Why? I don't care how they are called as long as I get to login
  4. Non-discoverable credentials aren't passkeys, but it is close to that, as long as it is properly implemented, I don't see why not call them as such
  5. This I have issues with: Passkeys can be inaccessible, so how to login when urgency calls? Password and MFA is the way to do it, otherwise, you are cooked in hundreds of ways
  6. No comments since I haven't seen that
  7. That's required if you want passkey implementations, see Google with Android phones as an example
  8. Agreed
  9. And how do you propose that automation? Face recognition? Traditional methods which break Number 5?
  10. Nope, just let the user decide, no number of days or authentications will suffice for passkey only, that will kill user access

0

u/bytecode36 8d ago edited 8d ago

1. Google Passwords only works on Android and Chrome, forget Firefox or other stuff, and it is by design

Google Passwords is not the only passkey authenticator available. Apple has their own authenticator and there are a variety of cloud based authenticators like 1Password and Bitwarden. There are also hardware passkeys like Yubikeys and Token2. Some sites have a habit of restricting certain authenticators because they only want users to use platform authenticators (Google, Apple) or don't want to allow other authenticators for unknown reasons. This, despite the fact that some authenticators like Yubikeys are more secure than what they are allowing. Limiting the browser and operating system also makes no sense.  All major browsers support passkeys, so there is no reason to arbitrarily restrict which ones can be used to login to a website. Most operating systems support passkeys, but even if they don't the browser can still handle passkey authentication itself. At the end of the day, websites should not be making these decisions. If Webauthn works on a user's setup, then they should be allowed to login. If Webauthn doesn't work, then that is on the user to fix. No involvement from the service provider is needed. 

2. Why 3? Why not just 2? Or 22 like me? What is the logic behind 3?

Three is just a minimum, more can be added. This comes from the well known 3-2-1 backup rule of IT (3 copies). One is obviously not good. Two is better, but in a situation where one passkey gets lost or destroyed you are in a situation where all of your credentials (data) are on a single device until you can get another authenticator set up and registered. Even if temporary, you are back to a single copy situation. Having three copies more or less guarantees that you are not going to be in a situation (temporary or not) where all of your data is on a single device.

https://www.veeam.com/blog/321-backup-rule.html

3. Why? I don't care how they are called as long as I get to login

This is absolutely a big deal. For those of us that have multiple authenticators (which you should be doing), if they are all the same type/brand then websites will commonly name them the same when registered (sometimes even different brands/types are named the same). This makes it difficult, or impossible, to later determine which ones to delete if an authenticator has to be replaced. This would result in the user having to test all authenticators for any passkey changes. If the user has 50 or 100 sites registered on their authenticator, this is no small task. 

4. Non-discoverable credentials aren't passkeys, but it is close to that, as long as it is properly implemented, I don't see why not call them as such

Well, as JimTheEarthling pointed out, it is an incorrect statement to claim they are passkeys, so part of the rule is just to avoid confusion. If you say you support passkeys, people are expecting resident/discoverable credentials. Another part is so that the username does not have to be input during login. The final part of the rule is to allow users to determine which sites they have passkeys for using an authenticator manager. Otherwise, if the site only uses non-discoverable credentials, users will have to track which sites they have set up their authenticators for separately (like on an Excel document). The rule does not even require eliminating passwords (even if that's what the site wants to do), just that passkeys should serve as an independent form of authentication, not tied to password authentication.

5. This I have issues with: Passkeys can be inaccessible, so how to login when urgency calls? Password and MFA is the way to do it, otherwise, you are cooked in hundreds of ways

If done properly, no. I have three hardware passkeys. One is permanently on my desk, the other is on my keychain and the third is in a fireproof safe. At home I have all three passkeys. When I am mobile, I will always have one. If I was super concerned about availability I could add a fourth cloud synced passkey that I could use if, for some reason, I did not have access to my keychain outside my house. In addition to that, I am not saying sites can not have an automated recovery process (backup codes, email recovery, etc...).

6. No comments since I haven't seen that

It can happen, but won't if sites implement passkeys correctly. Otherwise users could register the same authenticator twice and believe they have a backup device when they actually don't. 

7. That's required if you want passkey implementations, see Google with Android phones as an example

No it is not. Keys can be created silently and others only with a single button press. I had two passkeys created without my knowledge before I even purchased my authenticators. I had to go back and delete them. The problem with this is that sites register passkeys without the user's consent, then the user ends up wiping their phone and the passkey goes with it. 

https://developer.chrome.com/docs/modern-web-guidance/guides/security/passkey-conditional-create
https://mojoauth.com/blog/conditional-create-silent-passkey-enrollment

8. Agreed

-

9. And how do you propose that automation? Face recognition? Traditional methods which break Number 5?

The rule is not prescriptive. Each site can determine their own automated recovery process. Some may choose email recovery, some may choose backup codes and some may choose combinations like SMS + Email. All I am saying is that they should have one (which most sites already do), or they should require the user to register two passkeys so they have a way to get back into their account if a single passkey is lost. This also does not eliminate the possibility of a non-automated account recovery process (phone call, providing ID, etc...) but that is an inconvenience to everyone, users and service providers, hence the rule. 

10. Nope, just let the user decide, no number of days or authentications will suffice for passkey only, that will kill user access

I would not necessarily disagree with you, as I generally prefer user choice. Also, the rule does not force sites to eliminate passwords. But the point of passkeys is to eliminate passwords. Some sites like Meta have already begun to enforce passkey only logins. Saying users should ALWAYS have to approve password login removal is like saying phone customers should ALWAYS have to approve getting rid of their landline phone. The reality is, it's going to happen whether the user likes it or not. The rule simply states that IF the service provider is going to eliminate passwords, they should at least let the user verify they can authenticate with passkeys first. I have seen some sites immediately switch to using passkeys as the only login option once the first one is registered. If for some reason the passkey login did not work, I would not have been in a good spot. 

2

u/SiteRelEnby 8d ago edited 8d ago

10 is how you generate excess support requests, guaranteed. Nothing says they have to replace passwords, they are just an alternative option. Many sites offer both. Some offer email magic link as a third too.

Also, on 5, the other solution, and how we build our apps: Password (with optional totp) still exists and can't be removed, just is bypassed on successful passkey auth. i.e. passkey or password, not needing both.

1

u/bytecode36 8d ago

- #10 does not force websites to automatically remove passwords. It just requires the website to allow for their removal if the user or operator eventually want to get rid of them and sets ground rules for doing so (the user needs to approve or number of successful authentications using passkey occur). It is still up to the user or operator (which ultimately has full control anyway) to determine if passwords should be disabled.

- That doesn't violate #5. It just says that the only use of passkeys should not simply be an additional factor to passwords. Keeping passkeys and passwords as separate and independent authentication paths is fine (and probably what many will do). The issue I have seen is sites that use passkeys ONLY as a second factor to passwords

0

u/MegamanEXE2013 8d ago
  1. If you take what happened with everyone in the US not using WhatsApp as a default messaging method, you'll know that common folks (yeah, those who authenticate everyday and are not tech savvy) want to use whatever they are offered by their phone (Apple passwords, Google Passwords) and be done with it, problem is that those folks are getting married with a browser (Safari and Chrome) as well as their own accounts, so even if they want to use another browser, it would mean switching to another stuff which may or may not be secure.

Also, why put the blame on the user if something on the Webauthn authentication fails? Are you saying it is my fault that last Thursday Microsoft refused to authenticate me with a passkey and had to fallback? If you blame the user for a flaw in implementation, then it is a bad implementation on behalf of the service provider (sounds like Steve Jobs blaming the user for that iPhone decision of a Faraday field)

2) the logic behind 3-2-1 is having 3 backups on 2 different media (at least), which would enforce Webauthn to only register one type of passkey (Either software-based or hardware-based) and the other 2 leave them with what is left. None of that is appropriate, just let users use whatever they, and as much as they, want and then assume consequences when they are locked when following most advises given here

3) I have 22 devices with Passkeys as I stated in my point, and if I need to delete a passkey, I just access my manager and do it from there, if I don't have it, it should not appear, as simple as that, naming can become a headache even for the user...

4) People is just expecting easier ways to login to their accounts without hassle, and the password is the hassle for many of them, so add to that that passkeys can fail to authenticate to the correct user when 2 different accounts for the exact same service are stored in the same Yubikey without letting you choose (which in turn also makes some noise), so even though they aren't passkeys as I also pointed out, a renaming method for users that just know that what they unlock the phone is a different name, they get confused, just whatever needs an asymmetric cryptography to authenticate call it passkeys for the common folks.

5) I have 22 passkeys, and had to fallback authentication many times due to many situations, and not everyone can have 2 or even 3 keys, so having the fallback option is still necessary

6) That is a flaw on the implementation of some sites, which of course, should be fixed. Agreed then then

7) Google creates a passkey for every phone you register with them without asking, my point stands, if you want quick and massive adoption, that's the way

9) So #9 breaks #5 at the end of the day if you need a fallback method for access, or doesn't and you need to hamper your privacy with a face recognition or fingerprint registration for #5 to stand...

10) Passkeys eliminate the need to input a password on every single login, doesn't eliminate passwords entirely (or shouldn't, due to certain sites doing so in a wrong way), and in many countries and companies, user MUST approve getting rid of their landlines even today in 2026, so killing passwords entirely will create a mess that will explode quickly as soon as those "killings" get massive

2

u/bytecode36 8d ago

common folks want to use whatever they are offered by their phone and be done with it,

 I have no idea what you are saying. Rule number 1 does not FORCE users to use a particular browser, operating system or authenticator, it just means that WHATEVER they choose the website should allow it as long as it supports Webauthn. Users can still use Apple, Google, Chrome or Safari. So I don't get how you are implying that this is a restriction on users.

why put the blame on the user

If you are using a browser that has not properly implemented Webauthn, I'm not really saying it's the users "fault". The true fault could be with the software developer, but it would need to be on the user to rectify. There is no way around this. If the user chooses a browser that does not implement HTTP correctly, it would be on the user to rectify. Either by asking the developer to fix the issue or moving to a different browser. This is not unique to passkeys  

2. 

on 2 different media 

Once again you are reading things into my words that are not there. I never required two different forms of media. Three backups makes sense for the reasons I stated (never being in a state where you only have one copy of data, even temporarily). 3-2-1 just implements it because of that reason. That does not imply, nor does the #2 rule enforce the other 3-2-1 rules. Each technical system is different and the rules do not always transfer. Hardware authenticators are reliable and the best form of FIDO2 storage. Requiring users to put passkeys in software does not make sense for passkeys, so it was not part of the rule

just let users use whatever they

Rule #2 never restricted what users could use. If anything, it is giving them MORE choices. So you are just making this up.

3. 

I have 22 devices with Passkeys

I have no idea what the fuck you are saying. If you are saying you have 22 authenticators, I call BS. If you are saying you have 22 passkeys on a single authenticator then you would not understand what this rule is for. Deleting keys from your authenticator will not simply delete it from the service provider's website. If the keys are not named on the website you would not know which key to delete. 

"naming can become a headache even for the user"

This is the dumbest thing I have heard. This is OPTIONAL. Users do NOT have to rename their passkeys. If allowing renaming "gives you a headache" then don't do it. But this comment just makes you look stupid. Several other people that have posted here know exactly what I mean and it makes sense. BTW, individual passkey renaming is done on all three major service providers (Google, Amazon, Microsoft). But I guess you know better huh?

4.

makes some noise

If a browser does not allow a user to select among credentials properly, then that is an issue with the browser, not with resident passkeys. BTW, all major tech giants (and the vast majority of "passkey" enabled websites) use resident/discoverable credentials. If what you are trying to express here was truly a problem, then all of these sites would not be using them.

just whatever needs an asymmetric cryptography to authenticate call it passkeys for the common folks

No, I am not using incorrect terms just because some random guy on the internet says so so "common folk" can understand. Also, it is only your opinion that "common folk" don't understand resident credentials. I say the opposite is true. Non-resident credentials are more confusing to people since they can not see them added on their authenticator. Either way, passkeys only use resident/discoverable passkeys. Nothing you say is going to change that.

5. 

had to fallback authentication many times due to many situations

You are, once again, mis-reading this. I am NOT saying passwords need to be removed, just that passkeys should have their own independent path for authentication separate from passwords. If a site wants to continue to use passwords as a backup, this rule does not change that.

7. 

quick and massive adoption, that's the way

Uh, maybe. If users end up getting locked out when they wipe their phone not knowing there are passkeys to many sites on it, then they start resisting passkeys altogether. That is not good for adoption. There have been many posts on this forum and others where this has happened to people (or they lost their passkeys in other ways) and have decided to not use passkeys going forward. Forcing or tricking users into doing something that could result in loss of account access is not a good path to take. I think most people reading this rule will understand that. But you do you I guess.

9. 

#9 breaks #5 

No. You misunderstand 5. None of my rules force elimination of passwords.

you need a fallback method for access

Yes, this is why the rule requires automated account recovery or additional passkeys. No part of this REQUIRES "face recognition or fingerprint registration". Recovery could be SMS, email, backup codes or a combination of them.

10. 

user MUST approve getting rid of their landlines even today

This was just an example, and in the US this is definitely NOT the case. This is a dumb thing to harp on. I can come up with a thousand examples of things companies force on users. Just because you can find some examples where users have choice does not negate what I am saying. If a website (like Meta) forces users to get rid of their password YOU have no ability to stop them. Full stop.

passwords entirely will create a mess

It's a good thing the rule does not force websites to get rid of passwords then huh? Just that it has to allow for it to be possible, and that the site would need to verify the user can authenticate with passkeys first.