如何持久化oauth登录信息?

发布于 2024-10-05 06:49:00 字数 133 浏览 0 评论 0原文

我正在为一个网站开发第三个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

玩心态 2024-10-12 06:49:00

这取决于您使用的服务。例如 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文