如何向 JanRain phpopenid 示例服务器添加 checkid_immediate 支持?
我正在使用基于 JanRain phpopenid 库的 OpenID 服务器。 它没什么特别的,只需修补即可与 Yubico 一次性密码生成器一起使用。 它授权良好,但未能通过 JanRain 诊断工具。 它说 checkid_immediate 需要设置,但我不确定这意味着什么。
我的问题是 JanRain 提出的示例演示是故意简洁的。 JanRain 的 Jonathan Daugherty 表示,“示例服务器不应被视为配备齐全的 OpenID 服务器(即具有用户帐户和其他状态)。”
不幸的是,弄清楚如何在淡化的服务器示例之上实现 checkid_immediate 有点超出我的能力。 谁能给我指点一下如何实现这一目标? 谢谢你!
I'm using an OpenID server based on the JanRain phpopenid library. It's nothing special, simply patched to work with the Yubico onetime password generator. It authorizes fine, but fails the "Successful checkid_immediate" tests at the JanRain diagnosis tool. It says a setup required for checkid_immediate, but I'm not sure what that means.
My problem is that the example demo JanRain came up with is purposefully spartan. According to JanRain's Jonathan Daugherty, "the example server is not supposed to be treated as a fully-equipped OpenID server (i.e., with user accounts and other state)."
Unfortunately, it's a bit over my head to figure out how to implement checkid_immediate on top of the watered down server example. Can anyone give me pointers about how one might achieve this? Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
checkid_setup
路径和checkid_immediate
路径之间的唯一区别是,您不能在提示用户代理任何内容的地方放置任何其他中间页面,您必须立即发出响应(可能来自$request->answer(true)
或$request->answer(false)
)。The only difference between the
checkid_setup
path and thecheckid_immediate
path is that you can't put any other intermediate pages in there where you prompt the user-agent for anything, you have to issue a response (probably either from$request->answer(true)
or$request->answer(false)
) immediately.