Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Standardize authentication"?


Well Basic Auth exists now, but it is unusable for most sites due to several well-documented shortcomings. Surely something could be done to improve upon it.


The most important shortcoming of basic auth is the idea of building it into the protocol to begin with. Session authentication is superior to basic auth.


Like kicking it up to the application layer?


You can add new authentication methods by defining the format of the authorization/authentication headers. OAuth 2 does it. The only thing you need is buy-in from application authors.


This is mostly true but browsers treat Basic Auth special. To use Authorization Bearer headers you have to use JavaScript and perhaps localstorage. When using Basic Auth the browser caches your credentials and allows you to be authenticated without cookies and without JavaScript code. The only way you can use OAuth header authorization today is with JavaScript apps, Basic Auth works with normal server side apps.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: