Live data from Hacker News

HTML attributes to improve your users' two factor authentication experience

twilio.com

61–70 of 82 posts

Re: HTML attributes to improve your users' two factor authentication experience

#61
post #18

Earlier quoted context omitted.

Nope, not if it introduces common customer support backdoors.

If it is enough with access to the phone number, no password needed, then it is no longer 2FA.

Sure, but 17 websites do this. For those websites you introduce significant weaknesses if you enable SMS 2FA.

https://www.issms2fasecure.com/

Re: HTML attributes to improve your users' two factor authentication experience

#62

Didn’t we just learn you shouldn’t use SMS 2FA?

A lot of people say that. But SMS 2FA is better than nothing.

SMS 2FA introduces problems that no 2FA doesn't have. Sites can start spamming my number with notifications, or using my number for ad targeting.

Re: HTML attributes to improve your users' two factor authentication experience

#63
post #24

While Twilio does a lot right, they still only offer SMS and their own proprietary Authy solution for 2FA for their website. No TOTP (and still no plan to offer the industry standard) means that this has a whiff of hypocrisy.

The Twilio 2FA API actually allows you to generate secrets and QR codes for generic authenticator applications now. Check out the documentation here: https://www.twilio.com/docs/authy/api/one-time-passwords#oth...

The argument then goes back to, why pick up an external dependency and cost for open standard authenticator when you could just include a library and generate it yourself.

Re: HTML attributes to improve your users' two factor authentication experience

#64
post #49

I want a one-step-login. Not two step (first username, then password) and certainly not three step (username, password, 2fa, all in seperate pages). This braindead concept needs to die. If no 2fa is active on the account, just accept anything (including empty strings) in that field.

I get the point, but I’d be afraid that non-technical users would be confused to the point of not even trying...

You could obviously add some info message below or above, but people tend to be terrible at reading.

Maybe if the 2FA input field is below the login button, after some text explaining it’s function..?

I’d love to see some UX test results on this with a bunch of real users of varying tech skill levels.

Re: HTML attributes to improve your users' two factor authentication experience

#65

Hello! I’m the author of this article. Thanks for posting! Here’s to the power of HTML attributes and better sign in experiences for everyone.

why recommend inputmode if isn't well supported by other browsers that aren't Chrome ?

Re: HTML attributes to improve your users' two factor authentication experience

#66

Hello! I’m the author of this article. Thanks for posting! Here’s to the power of HTML attributes and better sign in experiences for everyone.

why recommend inputmode if isn't well supported by other browsers that aren't Chrome ?

It's supported in iOS Safari and Chrome / Chrome for Android[1].

I'd say that's well supported, especially for the problem it's trying to solve (displaying the best keyboard for the input on mobile devices).

[1] https://caniuse.com/#feat=input-inputmode

Re: HTML attributes to improve your users' two factor authentication experience

#67
> You can use more than one autocomplete value at a time too. If your username is also an email address you can give the browser and any associated password managers a hint with ‘autocomplete="username email"’.

This whole paragraph is incorrect. While the attribute value does allow multiple tokens there is a very specific syntax defined in the HTML standard and it doesn’t support multiple field names (types) i.e. autocomplete="username email" is invalid. If you access ‘input.autocomplete’ on an input with that attribute value “” will be returned indicating this.

Re: HTML attributes to improve your users' two factor authentication experience

#68

> You can use more than one autocomplete value at a time too. If your username is also an email address you can give the browser and any associated password managers a hint with ‘autocomplete="username email"’. This whole paragraph is incorrect. While the attribute value does allow multiple tokens there is a very specific syntax defined in the HTML standard and it doesn’t support multiple field names (types) i.e. aut…

You are absolutely right and I don't know where I read that (or why I believed it, given I had the spec open at the time too).

I've updated the post, thank you for your help!

Re: HTML attributes to improve your users' two factor authentication experience

#69
post #63

Earlier quoted context omitted.

The Twilio 2FA API actually allows you to generate secrets and QR codes for generic authenticator applications now. Check out the documentation here: https://www.twilio.com/docs/authy/api/one-time-passwords#oth...

The argument then goes back to, why pick up an external dependency and cost for open standard authenticator when you could just include a library and generate it yourself.

This allows a developer to have all the benefit of the Authy API, including enhancing the experience using push authentication or dropping back to SMS if needed, as well as allowing users to use an authenticator app of their choice. It's the best of all worlds in this case.

But if building and maintaining app based TOTP using a library is good enough for you, then go for it. I'm certainly not going to make you use Twilio's APIs, but plenty of businesses do see the benefit.

Re: HTML attributes to improve your users' two factor authentication experience

#70
post #66

Earlier quoted context omitted.

why recommend inputmode if isn't well supported by other browsers that aren't Chrome ?

It's supported in iOS Safari and Chrome / Chrome for Android[1]. I'd say that's well supported, especially for the problem it's trying to solve (displaying the best keyboard for the input on mobile devices). [1] https://caniuse.com/#feat=input-inputmode

Further to this, it is also why I suggested the pattern workaround for older browsers.

You shouldn't find yourself in too much trouble in a browser if you add an attribute to an element that it doesn't understand though, it will just ignore it.

Post reply on HN