如何向 JanRain phpopenid 示例服务器添加 checkid_immediate 支持?

发布于 2024-07-29 06:44:30 字数 500 浏览 7 评论 0原文

我正在使用基于 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 技术交流群。

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

发布评论

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

评论(1

皓月长歌 2024-08-05 06:44:30

checkid_setup 路径和 checkid_immediate 路径之间的唯一区别是,您不能在提示用户代理任何内容的地方放置任何其他中间页面,您必须立即发出响应(可能来自 $request->answer(true)$request->answer(false))。

The only difference between the checkid_setup path and the checkid_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.

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