News for hackers. Stuff that matters.
Re:Show HN: NullAuth – A proposal for password-less authenti... by jeswin on Saturday December 16, 2017 @10:56AM (#15940068)
As I mentioned on the top, it isn't ready yet. I just wanted to put a spec out there for discussion. I also wanted to take ideas on implementation, such as what you just provided.

I'll keep you posted on progress, if your email is in your profile. Hoping to have everything (plug-in and serverside examples) ready in a week or two.

Re:Show HN: NullAuth – A proposal for password-less authenti... by skibz on Saturday December 16, 2017 @11:44AM (#15940257)
Also, forgot to mention:

If you were to use WebCrypto, it ought to be possible to securely (with respect to cross-origin policy) store a user's private key using IndexedDB.

Re:Show HN: NullAuth – A proposal for password-less authenti... by jeswin on Saturday December 16, 2017 @11:51AM (#15940286)
Being able to transfer private keys between devices owned by a user might be a necessary feature. Otherwise accounts will be tied to a single device. Not sure what would be a good way to do this though.
Re:Show HN: NullAuth – A proposal for password-less authenti... by skibz on Saturday December 16, 2017 @12:14PM (#15940414)
Absolutely, yeah.

WebCrypto has support for keypairs that can have the private key data extracted (there are limits, though, which I cannot accurately remember) from the JavaScript object in which they are contained.

So it ought to be possible to extract the key data, encrypt it (also using WebCrypto) and sync it (somehow) to another device.

Re:Show HN: NullAuth – A proposal for password-less authenti... by joantune on Sunday December 17, 2017 @06:31AM (#15945313)
Keybase had something for that if I'm not mistaken
Re:Show HN: NullAuth – A proposal for password-less authenti... by jeswin on Saturday December 16, 2017 @08:50PM (#15943483)
The other option will be to generate a new key pair on the new device, and then add the public key to an account via an already registered key.

Add key for <user@website> at <utcmillisecs>: <new_public_key_goes_here>;<sign>

Re:Show HN: NullAuth – A proposal for password-less authenti... by jeswin on Saturday December 16, 2017 @09:05PM (#15943546)
Or maybe just do it with a UI, after logging in with the original key. However, That would restrict the user to adding new devices only from trusted machines.

Again, having a command ("Add key ..." as in parent message) for this would make this feature accessible to password/key managers.

Re:Show HN: NullAuth – A proposal for password-less authenti... by skibz on Saturday December 16, 2017 @11:38AM (#15940237)
Sorry, I missed that.

I love the idea. It reminds me of something I read on HN a few years back where somebody proposed using SSH auth for web authentication.