为什么omniauth 需要 OpenID 提供商的商店?
OmniAuth 使用 OpenID 提供程序的商店(请参阅此处)(例如 OpenID:: Store::Filesystem
),虽然设置和使用它很简单,但我根本不知道为什么需要它。
有谁知道这家店的目的是什么? OpenID 工作所需的所有必要信息不是在所涉及的请求和响应中发送和接收的吗?
OmniAuth is using a store (see here) for the OpenID provider (e.g. OpenID::Store::Filesystem
) and while setting it up and using it simple, I don't know why is it needed at all.
Does anybody know what's the purpose of this store? Isn't all the necessary information required for OpenID to work sent and received in the involved requests and responses?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它写入了两个表的数据:随机数和关联。
查看 Rails 应用程序中的 /tmp 目录。除了常规会话、temp、cache、pids...目录之外,您还会看到omniauth 使用的两个名为nonce 和associations 的目录。
There are two tables worth of data that it writes: Nonces and Associations.
Take a look at the /tmp directory in your Rails app. You'll see two directories called nonces and associations that is used by omniauth, in addition to the regular sessions, temp, cache, pids,... directories.