RFC

Untitled

OAuth vs Xauth

Xauth是简单的OAuth,省掉了上图的ABCD,直接改成一步拿到access token(提供user,pass,服务器返回access token)。这种做法其实不被推荐,参考Retirement of xauth

为什么,这个要从OAuth的定位说起

The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowing the third-party application to obtain access on its own behalf.

OAuth主要是做第三方认证(第三方即图中的Client)。

那么我想要访问用户X在Facebook的数据的时候,怎样交互呢。理论模型就是

那么这个模型这么形成一个协议呢。OAuth就是这样的协议。

问题:

The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service...