oauth 和用户 ID
我很困惑,一旦我从谷歌获得访问令牌来访问用户联系人,
我将来如何再次将该用户与该令牌关联起来?
非常感谢
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要将该访问令牌保留在某处。
通常您会将其存储在链接到那里的用户记录的数据库中。
当您为该用户发出 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.
我对 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 :)