6 ms·
I must say, having switched from Google OpenID 2.0 to Google OAuth2.0 for authentication on our site I raised an eyebrow when I belatedly read on Homakov's 2013
by mikesname 12y ago
I must say, having switched from Google OpenID 2.0 to Google OAuth2.0 for authentication on our site I raised an eyebrow when I belatedly read on Homakov's 2013 blog[1] that OAuth2.0 was never intended for authentication, only authorization for certain discrete resources. At least with Stack Exchange doing it I'm in good company, but - if Egor is correct - it raises the question what's really a good choice for authentication nowadays.
[1] http://homakov.blogspot.com/2013/03/oauth1-oauth2-oauth.html http://homakov.blogspot.com/2013/03/oauth1-oauth2-oauth.html
- X-Istence 12y agoOpenID Connect would be a good choice for authentication. Which is really just OAuth 2.0: http://openid.net/connect/ http://openid.net/connect/
- scrollaway 12y agoMozilla Persona is the right approach to authentication. Unfortunately, Mozilla sucks more at marketing than Microsoft did in the late 90s and Persona got near null interest from developers that weren't already concerned by the very real dangers of OAuth and the uprise of Facebook/Twitter authentication. Persona is still there. It's still maintained, despite getting no funding, but that doesn't mean developers can't pick it up. If you are interested in authentication, learn about it. Implement it. Support it. Convert people. https://www.mozilla.org/en-US/persona/ https://www.mozilla.org/en-US/persona/ https://developer.mozilla.org/en-US/Persona https://developer.mozilla.org/en-US/Persona
- fiatjaf 12y agoPlus, if you use Persona, your users get automatic Google OpenID Connect (and others).
- ForHackernews 12y agoHowso?
- deleted 12y ago[deleted]
- StavrosK 12y agoPersona is fantastic, highly, highly recommended. If you have a web app, please look into integrating Persona, at least as an alternative.
- ForHackernews 12y agoAre there any client libraries available for Persona? Ruby, Python, JavaScript, C#? Edit: Found this - https://developer.mozilla.org/en-US/Persona/Libraries_and_plugins https://developer.mozilla.org/en-US/Persona/Libraries_and_pl...
- cobralibre 12y agoIt's true, OAuth 2.0 alone isn't intended to be used for authentication. Think of it this way: An OAuth access token is often described as being analogous to a valet key — anybody bearing the valet key can unlock whatever it is that the valet key unlocks, but this says nothing about the bearer of the valet key. Google now uses an OAuth 2.0 extension called OpenID Connect. This introduces an entity that's analogous to a referral letter [1], the ID token. It's basically a little string of encoded (possibly encrypted, possibly signed) JSON containing 'claims' about the authentication state of the end user. The client application can then validate that token to confirm to its satisfaction that the authentication happened for some particular user — and that the ID token was created for it and not some other application. [1] http://nat.sakimura.org/2011/05/15/dummys-guide-for-the-difference-between-oauth-authentication-and-openid/ http://nat.sakimura.org/2011/05/15/dummys-guide-for-the-diff...
- bascule 12y agoMacaroons are pretty interesting: https://air.mozilla.org/macaroons-cookies-with-contextual-caveats-for-decentralized-authorization-in-the-cloud/ https://air.mozilla.org/macaroons-cookies-with-contextual-ca...