oauth 和用户 ID

发布于 2024-08-11 07:27:18 字数 75 浏览 5 评论 0原文

我很困惑,一旦我从谷歌获得访问令牌来访问用户联系人,

我将来如何再次将该用户与该令牌关联起来?

非常感谢

i am very confused, once i get the access token from google to access user contacts,

how do I associate that user with that token again in the future?

many thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

淡莣 2024-08-18 07:27:18

您需要将该访问令牌保留在某处。

通常您会将其存储在链接到那里的用户记录的数据库中。

当您为该用户发出 oauth 请求时,您会查找令牌并再次使用它。

You need to persist that access token somewhere.

Usually you'd store it in your database linked to the user record there.

When you do an oauth requests for that user, you look up the token and use it again.

烧了回忆取暖 2024-08-18 07:27:18

我对 openid、oauth 和混合 openid+oauth 感到困惑。
我真正想要的是混合 openid+oauth,其中我将 openid 作为密钥,并将访问令牌链接到它。

无论如何,谢谢:)

i got confused between openid, oauth, and hybrid openid+oauth.
what i really want is hybrid openid+oauth, where i have the openid as key and access token is linked to it.

thanks anyway :)

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