Sinatra、Rails 和 Rack - 用户/会话管理
有谁知道在 Rails 应用程序中进行身份验证并允许其他 Sinatra 应用程序通过机架传递身份验证令牌和会话状态的方法吗?
我正在寻找基本上允许单点登录的东西。 (我已经在 Rails 应用程序中拥有带有身份验证的秘密和密钥,现在希望将其用作其他 Sinatra 应用程序的单点登录服务)
Does anyone know of a way to authenticate in a Rails application and allow other Sinatra applications to pass that authentication token and session state through rack?
I'm looking for something that basically allows single sign on. (I already have the secret and key in the rails app with authentication, now looking to use that as the single sign on service with other Sinatra applications)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我将使用 Rubycas 客户端,它允许我使用 LDAP 并将会话推送到我创建的每个 Ruby 应用程序。 Hancock 很好,它使用 OpenID,但这不是我需要的。
RubyCAS 客户端:
http://code.google.com/p/rubycas-client/
I am going to use Rubycas client, which will allow me to use LDAP and push sessions to each ruby application I create. Hancock is nice that it uses OpenID, but it is not what I need.
RubyCAS Client:
http://code.google.com/p/rubycas-client/
我知道这并不完全是您想要的,但请查看 github 上的 hancock 。它是 Sinatra 中 SSO 的开源项目。如果不出意外的话,它会让您知道从哪里开始。
I know its not exactly what your looking for but check out hancock on github. Its a open source project for SSO in Sinatra. If nothing else it will give you an idea of where to start.
我认为您正在寻找的是典狱长:
https://github.com/hassox/warden/wiki< /a>
这就是 devise 使用的。
I think what you're looking for is warden:
https://github.com/hassox/warden/wiki
This is what devise uses.