如何持久化oauth登录信息?
我正在为一个网站开发第三个 api 客户端。它
现在使用 oath 我怎样才能只让我的应用程序用户登录一次。
我想在会话中持久保存 oauth 信息,如何做?
因为每次使用app都要登录官方网站,很无聊。
I am developing a thrid api client for a website.It use oath
Now How can I only let my app user login one time.
I want to persistent oauth info in session , how to?
Becase every time you use app, you have to login into offical website.it boring.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于您使用的服务。例如 Twitter 要求您使用“身份验证 url”( https://api.twitter.com/oauth/authenticate )而不是“授权网址”。 Facebook 使用带有 javascript 的 2.0 版本,因此没有问题 - 您必须包含offline_access 作为权限。
在 Google Data API 中我还不确定。
This depends on service you are using. For example twitter requres you to use "authentication url" ( https://api.twitter.com/oauth/authenticate ) instead of "authorization url". Facebook uses 2.0 version with javascript so there is not problem with that - you have to include offline_access as permission.
In Google Data API I'm not sure yet.