by nailer · 11y ago · 0 comments
> If you use 'Login with X' you're giving X access to all your accounts.
That's definitely not correct. You are giving X to access only whatever scopes you allowed, on a single account.
Here's an example of just 'userinfo'. Click this and see what it asks for: https://accounts.google.com/AccountChooser?service=lso&conti...
Per the screen, it only allows:
" - View your full name, profile picture and profile URL"
" - View any publicly available information on your Google+ profile (if you have one or create one in the future)"
It can't see your photos, see your contacts, read your email, post G+ messages, or anything else you didn't authorise.
So, in other words:
- RandomWebApp lets users log in with Google.
- A RandomWebApp user has a Google account, and allows RandomWebApp to oauth against his Google account.
- Since Google issue the access token used for RandomWebApp, Google could conceivably access RandomWebApp on the user's behalf.
That's a legitimate concern.
Being authorized to use a particular account is still seperate from proving who I am. I have visions of going to the Pentagon and I say "Hi, President Obama here, give me access to all your intelligence data" and the analysts saying "Certainly sir! You have top authorisation, here is all the data". :-)
Actually, that would work better at a bank. "Hi, I'm Donald Trump, give me a million dollars from my loose change account, thanks!"
OAuth definitely does authenticate though (hence the name).
Your first sentence is totally correct though.
Hope that helps.
The conflation of authorization with authentication is an accident and a mistake. They are still quite separate concepts. Authentication is about verifying identity. Authorization is about privileges afforded a given identity. Access control models usually depend on some form of upstream authentication.
The third-party authorization flows provided by OAuth are not intended to establish or verify a user's identity. Their purpose is to extend a user's access to a third-party in a limited way without sharing passwords.
Social Sign-in is an accident of 3-Legged OAuth and its use for this purpose is considered a very weak form of authentication.
OpenID Connect takes the best ideas from preceding identity protocols and incorporates them into OAuth flows, giving the best of both worlds.
More information on all of the above here: https://github.com/christiansmith/anvil-connect/wiki/Referen...
Can anyone advocating OpenID connect give a single sentence explanation of why people (developers and users) would want to use it vs limited scope oauth?