Sinatra、Rails 和 Rack - 用户/会话管理

发布于 2024-09-17 20:12:59 字数 161 浏览 3 评论 0原文

有谁知道在 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 技术交流群。

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

发布评论

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

评论(3

往日情怀 2024-09-24 20:12:59

我将使用 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/

你的他你的她 2024-09-24 20:12:59

我知道这并不完全是您想要的,但请查看 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.

池木 2024-09-24 20:12:59

我认为您正在寻找的是典狱长:

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.

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