在 phpBB 和 Rails 应用程序之间共享会话
这可能是一个无意义的问题,但我的任务是创建一个共享会话信息(特别是登录/授权信息)的 Rails 应用程序,并安装 phpBB(其他人已将其定制为不仅仅是 BB)。
基本上我需要依靠用户的 phpBB 登录来授权对 Rails 应用程序的访问。我真的不想让用户维护两次登录来使用这个概念性的单一应用程序。
我阅读了很多关于 phpBB 的文档,但没有找到任何类似公开服务或 API 的内容,但我希望我只是错过了一些明显的东西。
我一直在考虑添加一种方法来公开一些哈希或某些东西来链接两个应用程序,而不是尝试压缩可能不同的会话实现。
快速上下文,这项工作需要快速、干净地完成,我从来没有用 php 开发过,而 Rails 速度非常快,所以我正在研究集成两侧的想法。
我可能会陷入困境,所以不要害怕这么说:) 谢谢!
This might be a nonsensical question, but I have this task to create a rails app that shares session information, specifically login/authorization info, with an installation of a phpBB that some other person has customized to be more than just a BB.
Basically I need to rely on the user's phpBB login to authorize access to the rails app. I really don't want to have the user maintain two logins to use this conceptual single app.
I read a lot of documentation on phpBB and didn't find anything like exposed services or an API, but I'm hoping I just missed something obvious.
I've been considering adding a method to expose some hash or something to link the two applications rather than try to squeeze possibly different implementations of session.
Quick context, this work needs to be done fast and cleanly and I've never developed in php and rails is super fast so I am investigating the idea of integrating the two sides.
I might be off in the weeds, so don't be afraid to say so :)
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你检查过 phpbb-auth 吗?
https://github.com/mattfawcett/phpbb-auth
Have you checked phpbb-auth?
https://github.com/mattfawcett/phpbb-auth