12 ms·
The "email is authentication" pattern
- threatofrain 2y agoPeople have already been building auth flows that take this password amnesia into consideration. Look at Anthropic. It's just one way of doing auth and I personally hate it.
- voiper1 2y agoI use a password manager. I don't like flipping back to my email, I already have a secure password.
- cpach 2y agoSame here! But for most apps we are probably in the 0,1% or so.
- ydnaclementine 2y agoThe most secure password is no password
- hansvm 2y agoTotally agreed. The account though, that's another question. Would you mind sharing the username of your favorite passwordless account?
- rembicilious 2y agoPersonally, I don’t care to share the username to any account, password protected or not. On a related note I think it is terrible security to have display name be the same as user login name.
- doctorpangloss 2y agoAnthropic and others do this to inconvenience account sharing. It’s not really about auth, it’s about licenses…
- archerx 2y agoThere are much smarter ways of doing this.
- tptacek 2y agoEmail accounts are the highest common denominator in online authentication. Phones are competitive, but people lose phones. Phone numbers are more common and durable, but the security of phone numbers is leagues below that of a flagship provider email account. It makes sense that so many authentication flows work this way. When designing a "fantasy football" alternate authentication system for the Internet, start with account recovery: what happens when a user loses your fancy authenticator? If the answer is "they just don't get access anymore" or "a panel of their peers attests to them", your fantasy authentication system also needs a fantasy species of sentient beings to serve as users, because it won't work for humans.
- hgomersall 2y agoIt's an interesting design problem to have panel of peers attest an individual's identity. It could be made fairly seamless if there was a common system in which a suitably distributed authentication secret could be recombined under instruction from the relevant party. Can it be made to work for normal humans? I daresay we have the ingenuity to design something...
- unilynx 2y agoexcept that those instructions will be handed out by phishers
- jlund-molfese 2y agoApple’s Recovery Contacts are a similar idea. The main difference is that just one can help you recover your account, but it doesn’t seem too hard from a UX perspective to make 3/5 recovery contacts required to unlock an account. https://support.apple.com/en-us/102641 https://support.apple.com/en-us/102641
- efitz 2y agoWe could also leverage trusted third parties for this purpose, for example, banks or DMV or Walmart. However, there needs to be a fiduciary interest by the third-party (eg liability for identity theft, etc) in order to incentivize them to avoid fraud. It is not clear that there would be enough profit involved to offset the liability.
- ivanjermakov 2y agoI never thought of using password reset as a permanent authentication method. Ingenious! Except when the service throws you back to the login page to authenticate with a fresh password you just typed in the reset form.
- tptacek 2y agoPlenty of services do this already, right? It's called "Magic link" login. Am I missing a subtlety?
- ivanjermakov 2y agoIn my recent experience it's 50/50.
- jonnycomputer 2y agoAs long as the email account is secure, and the throw-away one-time passwords are good, you have the frequent-rotation passwords security advocates dream about. Indeed, hand them a secure password they have to use (and forget).
- voiper1 2y agoI just made it an option in the "I don't have a password" form that instead of setting a password it just logs them in. So they don't even see / have a password to remember.
- prng2021 2y ago“It offers a guaranteed, repeatable, low-effort solution” Doesn’t this answer the question? I would have preferred to read and discuss what they believe to be better alternatives.
- Terretta 2y ago> whether we can take advantage of people’s tendencies towards learned behaviour like this See, thoughts like that turn into billion dollar valuations at Series B for, among other things, a login button that emails you a login link, taking advantage of people's tendencies towards behavior like this: https://stytch.com/products/email-magic-links https://stytch.com/products/email-magic-links https://stytch.com/blog/announcing-series-b/ https://stytch.com/blog/announcing-series-b/ (Or maybe turn into Tell HN posts on common SaaS vulns, like https://news.ycombinator.com/item?id=33162854 https://news.ycombinator.com/item?id=33162854, but point is lots of companies offer this including most SaaS-y IdPs, search: passwordless email magic link, it's not new: https://auth0.com/blog/auth0-passwordless-email-authentication-and-sms-login-without-passwords/ https://auth0.com/blog/auth0-passwordless-email-authenticati... ...)
- Hugsun 2y agoYou posit a good question but it would be interesting to take a step further and discuss some potential alternatives, or expand on why "email is authentication" is/isn't the best option there is.
- paulgerhardt 2y agoI’ll be hyperbolic and say the login flow is identical. A) Go to website, click through a password manager to copy and paste an arbitrary string of characters, receive TOTP request sent to your email to confirm your identity. Or B) Go to website, click forgot my password. Receive link to login. Enter an arbitrary string of characters. In many instances, login flow B is actually quicker and seldom slower. Clicking the “remember me” checkbox has no effect.
- MBCook 2y agoWho copy and pastes from a password manager? Here’s my workflow, and I consider it superior to both of the above. Go to site, Safari offers to autofill, give TouchID/FaceID, get asked for a 2 factor code. Sent via SMS/email? Safari offers to autofill for me. TOTP style? Safari offers to autofill for me. Easy peasy. Passkeys are even easier as there is no second step and waiting for SMS/email.
- bigstrat2003 2y ago> Who copy and pastes from a password manager? People who don't use something which integrates with the browser. People who run into the (uncommon but noticeable) edge cases where the password manager decides to not auto fill the password.
- MBCook 2y agoWhen it doesn’t work I get. I run into that from time to time. But I don’t think normal users want ones that don’t sync or integrate with the browser. I believe you can turn both off for Safari but that defeats the whole purpose in my mind.
- paulgerhardt 2y agoYes, that is a nice solution. I suppose the reason is because the Bitwarden option is cross platform and I don't want to sync two password managers. However when using Bitwarden the recent guidance is to turn off autofill[1] but even with it enabled it sometimes breaks hence my “seldom” caveat. I am heavily biased to prefer passkeys but as with magiclinks before them saw the rollout was badly botched. Specifically with regards to supporting multiple keys and revocation[2][3]. The standard supports correct implementation but don't require it; meaning most current rollouts are half baked and will remain that way. [1] https://flashpoint.io/blog/bitwarden-password-pilfering/ https://flashpoint.io/blog/bitwarden-password-pilfering/ [2] ie: https://www.reddit.com/r/yubikey/comments/14h0d7y/single_key_supported_websites_problem/ https://www.reddit.com/r/yubikey/comments/14h0d7y/single_key... [3] https://news.ycombinator.com/item?id=40165998 https://news.ycombinator.com/item?id=40165998
- cyrnel 2y agoSomewhat related discussion from yesterday: https://news.ycombinator.com/item?id=41468486 https://news.ycombinator.com/item?id=41468486
- jwr 2y agoSome apps enforce this flow, e.g. there is no way to log in with a password. I hate this. Because of the developers of these apps assuming that E-mail guarantees instant delivery (it doesn't), I can't use greylisting, which reduced spam very significantly.
- mgkimsal 2y agoAmen, yes. Greylister here too, and password reset/magic links sometimes end up being painfully slow.
- yencabulator 2y agoYour greylist setup really should learn good senders quicker; this shouldn't be an ongoing problem.
- TZubiri 2y agoBecause websites used emails as an identity, strictly in order to stop malicious use. An email ties a user to a domain, the domain issues a user for them. If too many users from a domain are malicious, the website can block the domain. It's a matter of identity and accountability.
- hnick 2y agoToo many don't actually verify the identity. I often get emails lying in the footer with something like "you are receiving these emails because you signed up" - no I didn't, someone else did, and you didn't check. But fast onboarding is king, right? And then the unsubscribe, close account, or basic support is all locked behind the login, or it's an international phone call. As far as I know, even if it's my email it's not legally my account so signing in would be illegal.
- dogcomplex 2y agoAt this point why not just pass a one-time url link to your email address, and have it be a single click to login? Have it expire within 10 mins if not used, and be one-time use disposable. Still, anyone who has the link initially should be able to login with your account - but it's only accessible from your email. Obliterates all sense of security beyond the email account itself, but that's where we're at anyway. Do the same pattern with a message to your phone "click to authenticate login: www.someurl.com?p=134234535" and you've got 2FA without any dumb "enter this code".
- fragmede 2y agoThere are a number of sites that do exactly that.
- sunnybeetroot 2y agoI agree this is a great way but don’t forget not everyone is signed into email on their device.
- Saris 2y agoSome sites do that, like Netdata. But it's slow compared to my PW manager just autofilling a user/PW combo, since I have to wait for the email and go click the link.
- EasyMark 2y agoYep, I really hate when I have to go to email to get a verification code or click link to verify. I have a password keeper and 2fa for a reason. I hate the wait.
- dogcomplex 2y agoOh I dont mean do it instead of passwords (if you remember them), but just as an alternative to the Forget Password or Authenticate dialogs using security codes. Should just be a "LOGIN HERE" mashable button
- byteflip 2y agoI'm coding up a webapp with this exact login process - the issue I've found is on mobile phones - apps like gmail won't let you copy the link into a browser without a preview. The preview consumes the link. (next.js auth) It's a bit annoying, since I don't want to login into the gmail in-app browser, I want to login on my regular browser.
- fmeyer 2y agoIdentity is tricky. Proving who you are depends on a certain level of trust. Whether it's through email, devices, phones, or, in more advanced settings, some sort of digital certificate; you won't have much options. Unless you're in Germany using a service provided by the Vogons, you might end up getting a letter containing an activation PIN via snail mail or worst having to visit the post office to show your passport.
- gmuslera 2y agoThe second component of this, for people that doesn’t care to do good track of their passwords, is that their email passwords are usually memorable in the wrong way. So both your mail and all the dependent services are all held together with the same weak clip. Double factor improved a bit this, or at least made it harder to break into this to some of the players, and simplified the process for some others.
- Ekaros 2y agoEmail passwords is interesting one. As my feeling with something like gmail is that you insert it approximately once or twice per device... Which leads to weird dynamic that you have to recall it way too rarely for actually to remember it properly...
- lelanthran 2y ago> The second component of this, for people that doesn’t care to do good track of their passwords, is that their email passwords are usually memorable in the wrong way. So both your mail and all the dependent services are all held together with the same weak clip. The point is that they are already tied together because most sites allow password reset (or account recovery) via email. It doesn't matter how securely your sign-on is designed, what identification token you are using (username, biometrics), what authentication mechanism is in place (passwords, MFA, yubikey, etc) if all an attacker has to do is type in the targets email and click 'forgot password'. If your site allows password resets or account recovery via email, then the users account is still only as secure as their email password anyway. Adding yubikeys, MFA, authenticator apps, etc into the mix doesn't move the security needle a single bit at all.
- robertlagrant 2y agoThe problem is just that despite all the advantages it would bring, people won't pay for auth as a service, where your identity is tied to accounts outside of an email address, and you (say) get a browser/phone notification to log in when you log in with MyAuthProvider and it's quick. They'd rather go through the email route, which is the same thing but slower and goes via Google.
- jt2190 2y agoI swear the McDonald’s app for the U.S. works like this on purpose. I’m prompted for my email then thus send me a link. They never ask me to set up a password.
- EasyMark 2y agoI don’t see any business who wants to stay in business blocking gmail or outlook.com or yahoo or proton mail
- tqi 2y ago> When I ask people why they do this, they either don’t have an answer, or respond with “huh, I never thought about why”. And that’s interesting to me. I do this because I don't care enough about the particular account or use it frequently enough to manage put more effort into it.
- aucisson_masque 2y agoExactly, that should be obvious but it's just that they don't care enough. My mother used to do that, until I teach her about bitwarden and it has completely changed her thought process. It's just that having to remember every password is impossible and they don't know about password manager.
- MrGilbert 2y agoInterestingly enough, that is the login flow Figma is using with my account. I provide my email address, and get an email that contains a linkt to log me in. I remember having seen this idea at other places before. I don't really like it, because for me, using a password manager makes everything already quite convenient.
- lelanthran 2y ago> I don't really like it, because for me, using a password manager makes everything already quite convenient. How many people do you think use password managers? 1 in a 100? 1 in a thousand? Looking at the user counts for all the major password managers combined, the number looks more like 1 in a few dozen million. We're a demographic that is smaller than the demographic of blind users. As a group, we're not even a rounding error. It makes no sense to optimise our group's workflow when the resources could be diverted towards making a better product. After all, it's not like they lock out password-manager users completely.
- al_borland 2y agoI’ve seen sites that cut out the forgotten password step, or passwords entirely… email is the authentication. 1. Type in email address 2. Get sent and email with code 3. Enter code to login While I can understand why someone might do this, as someone with multiple emails I kind of hate it. I had to add it to my password manager with the email and a note, so I remember which one to use and it’s not missing a password.
- seanthemon 2y agoOr maybe password managers need to catch up with this newly forming flow
- abdullahkhalids 2y agoKeepassxc (and its browser extension) can do this easily. You just have to one time define that the website only takes a username field. After that it will autofill the correct email in the field.
- wpm 2y agoPerhaps, a password manager managed email address used solely for these stupid links and codes. Why email then? Why not some other, better protocol? Why not just use a TOTP at that point?
- al_borland 2y ago> Why not just use a TOTP at that point? Friction. When the username is an email address, 100% of people logging in have an email address. Telling someone they need to setup TOTP, especially if they have never done so before, is going to be a bridge too far for something they may only use once or twice. One site I remember using this email code login was a small online store. If I was prompted to setup TOTP to buy something, I would have probably not bought anything. If my mom was prompted for that, she’d end up calling me, and I’d have to try to walk her through the whole thing… then I’d keep getting calls the next 5 times she’s had to login. If the site gives directions on what to do, they will probably only be written targeting a single authenticator app. For people who don’t yet know that the apps are generic (in most cases), this can lead to a user having 3 sites setup in 3 different apps. It can become a mess very quickly.
- miki123211 2y agoI'm surprised we don't have a standardized, cross-browser, simple, email-based authentication system. Basically something like this: 1. Website generates random string as challenge, sends to Browser, invokes API via JS on the client side. 2. Browser asks user to select the email to use, allows adding a new one. 3. Browser sends its auth token and challenge string to Browser Maker, Browser Maker verifies that the auth string is valid, signs email address and challenge with its public key, transmits signature back to Browser. 4. Browser sends data back to Website, Website verifies that the signature matches and that Vendor is trusted, lets user in. As an extra precaution against Vendor being hacked, Email providers could implement support for the system. Compliant providers would handle the email verification flow themselves, informing Browser maker when done and sending an extra certificate. Websites would then refuse to accept any logins where Email Provider indicated support (via DNS records) but its certificate wasn't included. This would also make the system usable in small (and therefore untrusted) browsers, as long as the email provider implemented support. It would even improve privacy, Browser Maker and Email Provider would only ever see the random challenge string, which would make it impossible to track the websites you visit. THe idea isn't hard to implement, we've had the tech to do it since the 90's (US restrictions on crypto notwithstanding). What we have instead is a mess of passwords that nobody can remember and proprietary authentication flows with horrible developer experience, terrible privacy issues and spotty website support.
- motoboi 2y agoWell you kinda reinvented passkeys.
- eaglemfo 2y agoI wish sites would acknowledge the need for a nerd mode that gets rid of all the stuff that annoys nerds and is essentially password or lockout, no resets. Enable reset methods or 2fa at your own whim. For the rest you can do weird stuff that doesn't work on nerds.
- monus 2y agoWell, yeah, “magic link” is a thing and one of the easiest form of authentication supported by many providers, like Supabase, Vercel and libraries like Next Auth. Another great side effect is that your backend doesn’t have to store user passwords which means removal of a lot of compliance headaches.
- archerx 2y agoYou should never store passwords in any case. Hash + Salt.
- montroser 2y agoI am one of those people who always clicks "forgot password", and sorry but it's actually fine. I type a long, completely nonsense sequence of words and characters for my new password, then ctrl-c to copy, then log in with that password, and then promptly forget it. It cannot be more secure to store it in a password manager than not to store it at all. The email recovery path exists in either case, so that part is a wash.
- OptionOfT 2y agoWhen you sign in at Home Depot, it defaults to sending you an email that you can click to sign in. And I absolutely hate it. There is a tiny link at the bottom that allows you to sign with a password, which I prefer.
- namtab00 2y agomedium.com too... I hate it
- PaulHoule 2y agoAny strong 2 factor authentication without the kind of high touch processes that a bank can afford is a corporate suicide pact. 10% or so of your users will be permanently locked out each year and once you get past the early explosive early growth phase that turns into a near steady state instead you get radioactive decay.
- throwaway14356 2y agoyou could make a password optional and just login from email. I will share this great innovation of mine: The location.hash is not send to the server. You can javascript it into a POST rather than a GET.
- mozzieman 2y agoA physical key you have put in your computer and store on your keychain.
- dredmorbius 2y agoAnd if you lose / damage that physical key? Look at the physical world analogue. If you lose a house key, you can force the lock, break down the door, re-key the door, pick the lock, or any number of other means of re-gaining access, up to and including going through the wall / ceiling / floor. If you lose an authentication key, you're S.O.L.
- mozzieman 2y agoThat is true, there is no silver bullet. For the people like me that know and have multiple keys in multiple secure locations are probably mostly fine, other solutions on government och bank websites is that they need somekind of formal verification before giving you a new key. There are always tradeoffs regardless of solution, depends on what you value.
- deisteve 2y agonot sure i get what this article's point is its the go to pattern because its the most resilient and intuitive we've been using emails for a long time and it makes sense that it became the go to authentication method
- 3np 2y agoThis is actually a really good use-case for PGP. Opt-in use to upload the pubkey and, if provided, encrypt automated e-mails like auth links and password reset. Facebook supported this for years, not sure why they recently deprecated it.
- melody_calling 2y agoI hadn't realised until reading this, that I use this exact method for Best Buy. Not intentionally though - I have my password stored in 1Password, so I know it's correct, yet every time I try to purchase something through bestbuy.com I trip some sort of ATO protection that falsely claims my password is invalid. I'm entirely willing to believe it's something on my side (ad blocker, local DNS blacklisting, etc.) but after a certain number of occurrances, you get bored trying to debug the problem and just follow the path of least resistance.
- dqv 2y ago> Not intentionally though - I have my password stored in 1Password, so I know it's correct, yet every time I try to purchase something through bestbuy.com I trip some sort of ATO protection that falsely claims my password is invalid. Are you sure it's not a maxlength mismatch? It is very common to have the "change password" field to have a different (or no) maxlength and then have the login page have a different maxlength. So you change your password to some 60 character password, then you log in where the maxlength is only 40 characters... wrong password! I actually have a policy now of having the maxlength stored in application config so it propagates to all password fields in my apps. Edit: Just checked and yes there is a length mismatch (form to set password has maxlength of 54, but login page has no maxlength set). So if your password length is > 54 and 1Password doesn't automatically cut the password it stores to 54 characters or fewer, you won't be able to log in.
- coldblues 2y agoI know a few sites, one of them being Spotify, that will lock your account based on "suspicious activity", lie that your password is invalid, and force you to reset your password.
- packetlost 2y agoWith email being the source of identity on the internet, it's really unfortunate that the standards have largely lagged heavily behind when it comes to stronger authentication algorithms. Why is SMTP still plaintext on port 25 for MTA<->MTA? Why is STARTTLS really the best we can do? Why do we not support 2FA or mTLS or passkeys or any one of the other modern authentication mechanisms or IMAP4, SMTP, etc.. ProtonMail is ok but the hoops they have to jump through to get their stuff working is obnoxious.
- gunapologist99 2y agoAnd why, in 2024, is requiring any encryption at all a violation of RFC 5321, thus making any MITM literally a trivial and impossible to defeat downgrade attack?
- 8organicbits 2y agoWorth looking at MTA-STS. I think DANE is on the way out, but it looked promising for a while.
- charles_f 2y agoThe thing is, the moment some service allows you to recover your password through email, this becomes a legitimate pattern. As long as the throwaway password is reasonably complex, the service becomes as secure as email can be (which is, imperfect)
- gunapologist99 2y agoFor seldom used (or cared about) accounts, this is pretty low friction, and most of those will keep you logged in for an extended period of time. From a perspective of one of these people, why even bother with trying to remembering a login or dealing with tools you don't have, like if you don't even have a password manager or know that they exist. From a systems and security perspective, it could be worse. They could be reusing passwords.
- csomar 2y ago> and whether we can take advantage of people’s tendencies towards learned behaviour like this. Isn't that what some services are doing already? There is no password in Notion, you just enter your email and the password is sent to your email address. Login with Email is like a primitive "Login with Google" where the user himself transfer the authentication token. It's still better in one area: no lockdown to a particular cloud provider. However, it doesn't address security, it just concentrate it in one place. Lose your email and now you have a much bigger problem.
- 8organicbits 2y agoUser researchers are great at making these kinds of discoveries. The basic idea is that you've got to actually watch a user when they use your site, ask some questions about what they are seeing and thinking.
- runako 2y agoDisclaimer: I loathe this pattern & hope something like WebAuthn prevails instead. That said, if folks are going to adopt this as a primary flow, perhaps email clients need to build in support. For OS providers like Apple, maybe this means less emphasis on the easy Passkey method and more on fixing the finicky email login flow that sites use instead? What would a good email login flow look like? What is the "password manager" equivalent in a magic link world? On something like iOS or MacOS with Safari, could the browser/app & email client communicate to make the login seamless (after the email delay)? Are new OS-level APIs needed for native apps such that they don't require switching apps to login? (This is a truly awful workflow.) Should sites stop making people register with passwords at all? What is the point of passwords when auth is primarily handled through magic links?
- archerx 2y agoA good email login flow is where I put my email and then my password then click login. Anything else is pure wankery
- pflenker 2y agoI used to follow this process for many of my logins (the less critical ones) before password managers were mainstream, and it was a conscious decision to do so. It’s more secure than a) reusing an existing password everywhere and b) setting a trivial password that _just_ passes the site’s password requirements. You can’t expect me to memorize all passwords for all different logins, especially the ones for less important sites, and especially if these sites impose their ridiculous password restrictions on me.
- ramijames 2y agoThis is why I've been relying on magic links via email as a sign-in/up method for my applications. Users will either default to oAuth OR they will use some generic email/password combo. The magic-link works for both sets of users and ensures that they always have instant access without having to manage yet another password.
- sgoto 2y agoAt this point, wouldn't "email authentication" simply be OpenID?
- gloosx 2y ago>why they do this There is always a simple answer to such question, and it's usually about some inconvenience the service provider decided to set-up for the user. In this particular case I think the answer is obvious: email provider usually have a session which never really ends, and just sits there logged in unless the browser cache is wiped. Make your service auth token to live for the same time as Gmail's, and as an alternative give users an ability to just login with OTP every time, but stop these unholy 12 hrs time-to-live auth token practices - your users will never log-in via password restore again.
- lbriner 2y agoI think this is closer to hinting at the truth. GMail and Cloudflare (and many other "high security orgs) have very long auth sessions. Why? Because the chance of somebody getting onto the PC of someone who uses these systems and hasn't logged out is actually really low. Most hacks are remote and based on weak passwords. Unfortunately, we lack the consistent language to measure risk and decide "do I really need 2FA on this site?" "Is 30 minutes a reasonable session time?". I think as long as someone has an up-to-date virus checker, most would rather stay logged in to stuff. Anyone ever been asked to delete all cookies to fix a problem on a site? My answer is always to "go fish". I remember somebody saying before, "it's your account, if you want to stay logged in and risk a hack, it's your risk not the company running the service". I believe that more and more. If your laptop is logged in and someone deletes all your EC2 instances, that's on you, not AWS for not logging you out sooner. They could but why should they? Piss off 1M users to try and protect 1 person who is too careless?
- gloosx 2y agoI also hate password expiration rules. A true manager's "bright idea" which is horrible for security. Once I was registered on a service which required a password change every month, so every single month I had to change a letter or number in my password, because they also stored all my previous passwords and did not let me just swap 2 passwords around, forcing me to create a "new" one every time. BTW my password is 24 characters of solid gibberrish which I can only remember by chanting a long mnemotechnique in my head, obviously never leaking anywhere and unpickable. So changing it is not easy. At some point I was so mad when I could not change a password in a way it did not repeat any of my previous modifications and still remembered easily, so i just put qwerty123 in, needing to log-in into service desperately. It was bruteforced days after.
- RockRobotRock 2y agoIf I launched a startup I would absolutely use magic links for auth. Minimum friction for users. As a user, I hate it.
- treflop 2y agoIt’s because password sucks. You’re supposed to not reuse passwords, but then you don’t remember passwords. So you use a password manager. Until more recently when phones and computers came with built-in password managers, no normal person was going to download a password manager. But even when you use a password manager, sometimes it doesn’t recognize the form fields. Or it doesn’t show it because the domain is different. Sometimes it doesn’t save a new login. The website has no direct awareness of the password manager so it’s hit and miss. So we created passkeys. Except it’s also hit and miss. Some sites only sometimes ask for them. No site explains what they are. Some sites ask for you to login with a passkey, which you wouldn’t have yet, but then don’t ask you to setup the passkey after logging in with a password, so you never set up a passkey. Overall authentication is a disaster and my very fiery take is overly technical people who are out of touch with normal people design authentication.
- obscuretone 2y agoA lot of sites are moving to OTP instead of passwords now. Make Auth Gmail’s problem. It’s not a horrible idea in theory.
- wruza 2y agoWhen I ask people why they do this, they either don’t have an answer, or respond with “huh, I never thought about why”. And that’s interesting to me. Is that a storytelling touch? Users aren’t dumb or unreflective, they know that they have nowhere to store their passwords, that’s why. Even if they aware of password managers, they can work on a shared cloud pc, so switching PM accounts would be a bigger hassle. How do you decide that using “I forgot my password” as authentication makes sense to you? A “trash caregory” site that didn’t bother to tag its username/password/etc elements as password-saveable, thus my PM didn’t ask to save the password. That is usually enough to not give af about saving it. Happens more often than you might think.
- antimemetics 2y ago> work on a shared cloud pc That sounds insane, is that actually happening in practice? What is the point?
- wodenokoto 2y agoI use this for webpages that have weird requirements for passwords. I can never remember what I enter on those so …
- soerxpso 2y agoTheir motivation is immediately clear to me. If you use "I forgot my password" you don't have to remember a password. And it doesn't even make your account less secure, since that pathway was going to be available to attackers regardless. I've seen websites that make that their default flow, arguing (implicitly) that having passwords at all is pointless when you can just email someone a login button, skipping a step. Personally, I hate it. I don't trust my email, hate that it's a single point of failure for dozens of accounts (it's not "2FA" if the second factor is the only one I need), and I'd prefer to log in with a password without any option to reset it. But alas.
- oerdier 2y ago> it's not "2FA" if the second factor is the only one I need It will be 2FA again if you protect your email with 2FA
- SPBS 2y agoWow, that's awful. So they abuse "forgot your password" as a login method, with the added obstacle of having to come up with a random password every time. And they don't see any problem with it. My hunch is that all these people are very non-technical users.
- EnigmaFlare 2y agoI do that for some sites. It's the initial effort required to set everything up that's the obstacle. This kind of behavior is taking the easiest route at every step instead of investing time into making the future easier. I stopped using a password manager after it got hacked and haven't bothered setting up a new one. The most annoying sites require you to confirm your throwaway password or log in again using it, and can't copy from the password field, so you can't just spam the keyboard and have to type it into notepad then copy and paste a few times before discarding it. This is stupidly inconvenient to do all the time but the alternative is more inconvenient to do once - researching which password manager is currently safe, finding it, installing it, writing down your master password somewhere really safe, etc. Then keeping on top of the news for the rest of your life to see if your password manager is going down the gurgler or been hacked. Also, will my passwords be available when I travel to a country with restricted internet? Who knows. Can I export my passwords to any other password manager or a text file if I need migrate? That's part of the research needed to even get started using a password manager.
- roryokane 2y agoI can save you some of that research. The KeePass family of password managers are open source and based around a shared file format. They save your passwords in an encrypted file on your computer or phone’s local drive. An ecosystem of apps by different people can parse that file format (after you enter your master password), and at least one app can export as CSV or HTML, so migration is not a problem. Since your passwords are in a local file, there is no online password manager that can be hacked. If you worry that your local password manager software will have malicious updates posted, you only have to read news at the time you download an update, which can be as infrequent as you like. If you need to share passwords among your devices, you can store the encrypted file in a generic file syncing service such as Google Drive or Dropbox. Those services are less of a target for hackers than dedicated password managers, and even if someone obtains that file, your passwords will be safe as long as your master password is strong. Specific KeePass clients I recommend: https://keepassxc.org/ https://keepassxc.org/ on desktop, https://github.com/PhilippC/keepass2android https://github.com/PhilippC/keepass2android on Android.
- rmrfchik 2y agoAnd then you are blocked by google.
- tsing 2y agoThe most common login process in China: 1. Enter phone number to received a six digits code 2. Enter the code
- PeterStuer 2y agoThis one is easy: First of all, 'real' people do not use password managers, and they feel a slight suspicion towards the browser 'remember password' dialog so rhey decline. They also have some boomer uncle that told them 'never to write down passwords' for the days where people post-it them to the monitor in shared office spaces. They also know 'not to reuse passwords' because if one site gets powned your password for everything is out there. So they develop a heuristic for mutating their 'master' password depending on the site or app, only to get thwarted by insane (not an exaggeration) password requirement rules. So they have to deviate from their heuristic, and will not remember the password they had to make up on the spot next time around, so a reset password email it is. Bonus: they make up a new password, omly to be informed they can not reuse a previously used password. XD
- ChrisMarshallNY 2y agoLogin and authentication are a really big deal, and represent some of the most complex code, in one of my apps. In fact, I just made a release last night, to try ensuring that we reduce the number of bad emails (I thought I could get away with eschewing the traditional “confirm email” thing —I was wrong. There’s a reason the classics are popular). Since it is an iOS app, I can implement Sign in/up with Apple, which helps a lot. It’s still a work in progress, though. I use the Keychain to store login info, with Face/Touch ID, to smooth the login process. Works fairly well.
- Swiftdream 2y ago[flagged]
- protocolture 2y agoA few services are just bypassing passwords and emailing you one time codes these days and it isnt the worst idea for exactly this reason.
- lxgr 2y agoI agree, but I strongly prefer the ones that allow both. I use a password manager, and a mandatory OTP email flow often annoys me enough that I think twice about logging in if it's not that urgent.
- thepra 2y agoat least for my privacy conscious web apps I don't even expect email for login, just a username and password. And if people really want to enable password recovery then they add their email into their profile and that data point is only used for that. It might bother some, but I don't really want to require emails for privacy related services. My two cents.
- kookamamie 2y ago> I think people can’t answer why they do this because it’s not a concious decision It's because that's simply the most convenient way of accessing the service. There are tens of services people use these days and passwords are seen as a nuisance. If there's an easier way of logging in, people will use it - no matter the security implications.
- dangsux 2y ago[dead]
- thatjoeoverthr 2y agoThe idea that someone is going to invent and remember a password for every dumb service is not real, and when you build another password based authentication system, you are doing a kind of LARP. Passwords are used in one of two ways: 1. a password manager guarded by a single actual password 2. the same password repeated between services Practically every service offers e-mail recovery, so, in practice, your e-mail is your authentication. Personal e-mail accounts are rarely replaced, not shared, and aren't reused. You've probably had your personal e-mail longer than your phone number. I've had at least five phone numbers in the life time of my current e-mail address. Other people now have those numbers.
- bombcar 2y agoApple has made the incredibly annoying “you can’t just enter your 1Password/keychain password, you have to dick around with email” process much nicer; at least when it can recognize the email/text and enter the code for you.
- bmitc 2y agoApple is the worst about this. The only option is that they send a message to an Apple device. I only have an iPad and not an iPhone or Macbook, so I often simply cannot log into my Apple account because they refuse to do anything else besides send it to an Apple device.
- 4ad 2y agoNot true, you can use FIDO2 keys. You can even use SMS (but you shouldn't).
- bmitc 2y agoYes, it is true. There are indeed cases where you are not presented with SMS options. And I'm not going to purchase and carry around a hardware key just for the privilege of periodically logging into my Apple accounts. Maybe Apple shouldn't force you to own an Apple device to login to your accounts? They've been sued about this before and lost. If Microsoft did this, people would lose their minds.
- Anthonymatthew 2y ago[dead]
- bmitc 2y agoIn general, I really am disturbed that so many websites use my email and phone number for authentication. I use authenticator and password manager apps for a reason. Using my email and phone number is both unsafe and was never approved by me. They just started doing it. Further, there's no way to turn it off.
- will1james 2y agoWhat are the other potential problems of the "email is authentication" pattern, under the following prescribed conditions? Maybe just these two? (Prescribed Conditions) - "Credential Recovery" complies with OWASP ASVS and is "adequately secure". - "Credential Recovery" is the "weakest link" of authentication. (Other authentication methods require TOTP, etc.) (Potential Problems) - The financial cost of sending emails. - my guess is that, since I could not find of news of this issue, these users are only a small percentage (hopeful not yet) - End-to-end response time for the "Credential Recovery" authentication process - my guess is that users who choose "Credential Recovery" authentication over other "happy-path" authentication are willing to wait, or are use to waiting. (Non-problems) - If the above conditions are specified, authentication security is not compromised. (Terms) - "Credential Recovery" as in OWASP ASVS V2.5 Credential Recovery, or "Self-service password reset" as in Wikipedia, or "forgot password" flow. https://en.wikipedia.org/w/index.php?title=Self-service_password_reset&oldid=1239165331 https://en.wikipedia.org/w/index.php?title=Self-service_pass... https://owasp.org/www-project-application-security-verification-standard/ https://owasp.org/www-project-application-security-verificat... https://github.com/OWASP/ASVS/raw/v4.0.3/4.0/OWASP%20Application%20Security%20Verification%20Standard%204.0.3-en.pdf#%5B%7B%22num%22%3A100%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22XYZ%22%7D%2C69%2C620%2C0%5D https://github.com/OWASP/ASVS/raw/v4.0.3/4.0/OWASP%20Applica... - "adequately secure" as in NIST SP 800-160 Vol. 1 Rev. 1, 3. System Security Concepts, 3.2. The Concept of an Adequately Secure System. https://csrc.nist.gov/pubs/sp/800/160/v1/r1/final https://csrc.nist.gov/pubs/sp/800/160/v1/r1/final https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-160v1r1.pdf#%5B%7B%22num%22%3A162%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22XYZ%22%7D%2C70%2C542%2C0%5D https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.S...
- fredsted 2y agoFor most people, doing stuff on computers is a matter of brute forcing it until kinda does what it's supposed to. Software is made by people who have an intricate understanding of how the underlying system works, but it's made for people who don't. When users get to a pattern that works, they stick with it. It's becoming even more common now that many schools are using tablets for education - they don't get a good feel for how a computer works. Most people don't think about it. It's just there, and they're used to things being broken, so what's a few extra clicks?
- overstay8930 2y ago> Software is made by people who have an intricate understanding of how the underlying system works Maybe 10% of software developers actually have an intricate understanding of what they do, in fact it is because developers don’t really understand what they are doing is why regular people brute force horrible software.
- amelius 2y agoHow do you deal with the situation that you lost access to an email address (e.g. change of employer) and years later you want access to an account that turns out to be tied to that email address?
- lwansbrough 2y agoWe run a pretty unserious business. That is, our users use our accounts only out of convenience. The system we've settled on is this: 1. User enters email 2. We send a verification code to their email 3. User enters code, is signed in "indefinitely" (very, very long cookie) Whether or not they had an account before hand is irrelevant, we just register a new account if the email is new. The occasional user has multiple emails and sometimes creates a new account accidentally. This is an acceptable disadvantage as we've observed dramatic improvements in registration and sign in conversions. There is some risk analysis to do here on the code lifetime and cardinality (better yet, use a lockout mechanism.) If your service isn't particularly important, I recommend this strategy. Mail on iOS now supports this type of mechanism too (same as the Messages one-time code functionality) so it can be quite painless for some users as well.
- t0mas88 2y agoThis is also (from the data that I have seen) by far the best approach to maximise ecommerce revenue. Don't force buyers into an account, just ask their details (the browser will autocomplete anyway). Send an email afterwards with a link to check their order status. Next order, ask for their email again. Any extra friction costs more in lost revenue than the benefits of having "signed up" users.
- cmeacham98 2y agoWouldn't the best approach be not to ask for an email at all (or only optionally for receipt)?
- sq_ 2y agoI would imagine that plenty of users these days wouldn't bother to save their order details on the grounds that "oh, I'll get a notification with those". Personally, I appreciate getting an email with details and a link for tracking. It does get annoying when it turns into low-grade spam, though.
- WA 2y agoI run a small B2C app. Users sign up with their email address only, a password field isn't even present. This creates the account and logs in the user "indefinitely" on this device. If they ever need to login on another device, they can request a new password. This way, this removes a) signup friction und b) weak passwords, because most people never need to login on another device anyways.
- osigurdson 2y agoThis is essentially the same as "sign in with Google / Facebook / etc." with added pain for the user.
- coding123 2y agoI think it should be entirely oauth. no password needed
- mplewis 2y agoIf passwordless sign in is good enough for Booking.com, it’s certainly good enough for any app that I ship.
- internet101010 2y agoSometimes email is the best way. Like if you are constantly posting files to third-party file hosting services (Box, Dropbox, etc.) that are not tied to AD of the recipient you have to have a way to ensure that only people currently working at the company can access the content. SMS and TOTP do not solve this problem in the same way that email does.
- zeroimpl 2y ago> What if we could somehow design systems so that the people who use them evolve to use them in better ways? I hate when people suggest that there is something insecure about using the password reset feature. Whether I chose to use it to get into my account without a password has no impact on the security of the account. The mere presence of this feature is what’s determining the security of my account. Similarly, some services I use prompt me to verify via SMS or Email after I input the password, but oddly imply that using SMS is more secure than email. Makes no sense to me since either way the OTP should only be usable on this one session, and even if one is a less secure channel, it’s the presence of the weaker option in the first place that’s the problem, not the choice made by the user.
- Summerbud 2y agoRecently I have a harsh experience with my AWS account. I made a dumb thing, my email inbox is registered under a domain, and somehow my domain's MX record is gone and I can not receive email from AWS to authenticate to the right account to fix that MX record. So I am permanently banned away from that account due to the policy of AWS Quite silly, yes. At the same time, I do think this scenario can represent a possibility when people need to rely on only one way to authenticate their entry. That is really frustrating when you make dumb thing under this circumstance.
- cx42net 2y agoThere are two (deep) thoughts about this article. First, about using the "Lost password", saying “huh, I never thought about why” is an easy way out with not much of a research from the author (sorry). One of the main reason people do that is because websites are enforcing dumb rules for a password that user tend to repeat on every websites (Your password must be 16 chars long, with lower and upper case, numbers and special characters. No more than 2 identical characters in a row ... yes ... I'm looking at you Twilio.com). Of course in that scenario I'll hit my keyboard in a random way and never login using my password. But this article leads to the alternative; login via email. Some HNers here have mentioned having implemented that on their website, either by sending a one-time login link, or a verification code by email. We did that too for ImprovMX.com initially, and it has a lot of advantages (no password, no password-lost flow, no security measures for storing the password, etc). But it turns out it also have quite a few downside that we haven't thought about: 1. Emails get lost. We had quite a few support request because users couldn't connect to our service because the login email never arrived. This is a major issue, mainly when user wanted to upgrade but couldn't because of that. If you decide to implement this, you must use a really good email provider (Postmark is really good. Mailgun, not so much) 2. Emails are async. When your user goes to your website, they want to connect now. Waiting for an email can take quite some time and they might loose focus 3. Security "measures" will tell you to not indicate if the email you entered is valid or not, to avoid listing your users (... I won't go in that); If you implement login by email, it means your user will enter their supposed email, you'll tell them something like "If your email is registered on our website, you'll receive a one time login link", wait what feels like an eternity to get the login email in their inbox, and at some point wonder if the email they entered was the right one. Will try another, wait, rince and repeat. So yeah, relying on email move all the security issues and added workflow back to a trusted service (login/lost password/2FA/OTP/etc to services like Gmail) but it will definitely add friction too. In the end, it depends on what service you offer.
- ddmf 2y agoThis is why I skip the password step altogether. We do have a list of customer email addresses already linked to the information they can view - if they enter their email address and it's in the list they get a link that will log them in for 12 hours and can see their associated data. If their email address isn't registered they're told to speak with their sales rep. This of course trusts that email accounts are the highest level of security a user has, which it should be because so much relies on it these days.
- Eddieethan 2y ago[flagged]
- Stephaniedaviss 2y ago[dead]
- Annettepatrick 2y ago[dead]
- miguelmelissa 2y ago[dead]
- abareplace 2y agobooking.com natively supports this "email is authentication" pattern, so you even don't have to change your password and come up with a throw-away password. They just send you a link by email, you click the link, and you are logged in.
- lilianlopez 2y ago[flagged]