Active Directory 用户与 Rails 联合?

发布于 2024-12-07 01:28:35 字数 419 浏览 0 评论 0原文

是否可以使用现有的 AD 用户在 Ruby on Rails 应用程序中对他们进行身份验证?更准确地说,这是目前的情况。

Rails 应用程序托管在 Linux 盒子上。目前 Brightbox 被用作托管提供商。 Rails 应用程序中只有内置的用户身份验证,我看不到让应用程序了解连接的 AD 用户的方法。

现在有一个相当大的客户,拥有数百名 Active Directory 用户。显然,他们希望用户登录而不为每个用户创建 Rails 应用程序帐户。所有已知的身份提供商(OpenId、Google、Facebook...)都别无选择。

我能找到做这件事的唯一工具是 Microsoft 的 ADFS2。但它看起来在 Rails 世界中并不真正有用。但这正是需要的。一种在 AD 和我的应用程序之间建立信任以信任外部 AD 用户的方法。

有什么想法吗?

Is it possible to use existing AD users to authenticate them in a ruby on rails app? To be a bit more precise here's the current situation.

A rails app is hosted on a linux box. Currently Brightbox is used as hosting provider. There's only built in user authentification in the rails app and I can't see a way to make the app aware of connected AD users.

Now there's a rather big customer in spe with hundreds of Active Directory users. Clearly they want to have their users logged in without creating a rails app account for each. All the known idendity providers (OpenId, Google, Facebook...) are no alternative.

The only thing I could find doing this stuff is Microsofts ADFS2. But it looks like not really usable in the rails world. But that's exactly needed. A way to establish a trust between AD and my app to trust the external AD users.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

北恋 2024-12-14 01:28:35

ADFS 需要在客户端使用某种 web.config。

您可以保护 Rails 应用程序。与另一个 Access Manager 产品 (OpenSSO / OpenAM) 一起使用。请参阅将应用程序与 OpenSSO 集成

或者,您可以向 Rails 添加一个“相似”的 WIF 插件(如果有这样的猛兽),它需要处理 ADFS 识别的 WS-Federation 或 SAML 协议。

ADFS requires some flavour of web.config on the client side.

You could protect the rails app. with another Access Manager product (OpenSSO / OpenAM). See Integrating Applications With OpenSSO.

Or you could add a WIF "lookalike" plugin to Rails (if there is such a beast) which needs to handle either the WS-Federation or SAML protocol that ADFS recognises.

青春有你 2024-12-14 01:28:35

看看我的雇主 Ping Identity 出售的 PingFederate。你很快就会完成。它使这种集成变得非常简单和安全。

Have a look at PingFederate which is sold by my employer, Ping Identity. You'll be done in no time. It makes this sort of integration very simple and secure.

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