Open xialvjun opened 6 years ago
Hey, welcome! Please check out https://whatwg.org/faq#adding-new-features. Per that, let's ignore the solution you proposed about private keys, and focus on the problem you're trying to solve.
From what I can tell, the problem you're trying to solve is that registering, logging in, and remembering passwords is tedious, and OAuth as an alternative is centralized. Is that correct?
If so, I suggest you check out https://w3c.github.io/webappsec-credential-management/, which is geared toward solving this problem by making the browser automatically help you register, log in, and automatically remember passwords. It sounds somewhat similar to your proposal, but using usernames and passwords instead of private keys.
Then can I export the credentials saved in the browser? Well, it should can, whatever.
Another use case, can the credentials be synced automatically in different device?
With private key, it can cause it just store ononly one private key for all the websites.
And how are you planning on getting every website with a login to support private key sign-in?
@Yay295 It's not a force. It's just a recommend. Then website follow this recommend will benefit from it.
Just like CDN supplying the javascript libraries.
We can treat the private key as the identity of the user on the whole web
That sounds really bad for privacy.
what does it have anything to do with privacy? websites can not track the user without user's permission.
I don't think we should have a model where two websites that are otherwise independent can end up with the same key, whether permission was given or not.
The private key is always grabbed in the user's hands.
JS API can not get the private key, it can only use the key to generate an identify of their websites...
Different websites have different identities on one person.
Nowadays, we have two ways for authorization on web browser:
email + verification code
,phone number + sms code
are just another appearance of OAuth);username and password
is good, but the users need toregister, login and remember the password
, that's tedious.OAuth
is good, but the websites need to apply for an APPID and it may lead to a monopoly. That's not that open.So, What can we do ?
We can make a private key authorization system built in browser.
Here repeat it: