Can Oauth2 be used for authorization and authentication?
As I understand it, Oauth2 allows a consumer application to access user information from providers (e.g. Facebook, Google, Twitter, etc.).
But can Oauth2 be used to authenticate a user? For example, suppose we have an application consisting of native mobile interfaces and a backend api - can Oauth2 be used to authenticate and support authentication over authorization from providers such as Facebook, Google, Twitter, etc.
If so, how? For example, do we save the authentication token and use it as a session token? Or is OpenId Connect necessary to authenticate users to a "consumer" application through third-party providers?
source
share