我是否将 openid 和 oauth 令牌存储在同一个表或单独的表中?

发布于 2024-11-27 07:07:38 字数 313 浏览 1 评论 0原文

例如:

openid
------
id
user_id
provider
url

oauth
-----
id
user_id
provider
token
secret

或者:

identities
----------
id
user_id
provider
token (token here is oauth token or openid_url)
secret (nullable)

底部的一个让我烦恼,尽管它更容易,因为秘密取决于令牌

想法?

For example:

openid
------
id
user_id
provider
url

oauth
-----
id
user_id
provider
token
secret

OR:

identities
----------
id
user_id
provider
token (token here is oauth token or openid_url)
secret (nullable)

The bottom one bothers me even though it's easier because secret is dependent upon token

Thoughts?

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

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

发布评论

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

评论(1

我最亲爱的 2024-12-04 07:07:38

这两种协议完全不同,具有不同的安全属性,不应该合并。

The two protocols are completely different, have different security properties, and should not be combined.

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