设计 - openid + LDAP
所以,我一直在研究 Devise,我真的很喜欢它,但我不明白的一件事是,你可以使用多个提供程序(例如 ldap 登录 + facebook/google/等)吗?所以,我想要的是:
- 用户 - 连接到我的网站的信息
- 链接提供 - 所以,我希望用户能够将他们的帐户链接到多个提供商。
例如,假设我们有用户 example_user。它的 facebook、google 和 ldap 帐户链接到其帐户,因此如果它尝试使用 ldap、google 或 facebook 帐户登录,它会成功并给我它的模型 User 实例。
抱歉我的语言不好,我很难解释我的问题。
谢谢!
编辑:我已经通过使用omniauth解决了这个问题。
So, I've been studying about Devise and I've really liked it, but one thing I didn't understand is, can you use multiple providers (e.g. ldap login + facebook/google/etc.)? So, what I want is:
- User - information connected to my website
- Linked provides - so, I want Users to be able to link their accounts to multiple providers.
For example, let's say we have user example_user. It has its facebook, google and ldap account linked to its account, so if it tries to login in with ldap, google or facebook account, it'll succeed and give me its instance of model User.
Sorry for my bad language, I'm quite bad at explaining my issue.
Thanks!
EDIT: I've resolved it by using omniauth.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许这三个指针会有所帮助:
http://wiki.phys.ethz.ch/readme/devise_with_ldap_for_authentication_in_rails_3< /a>
http://random-rails.blogspot。 com/2010/07/ldap-authentication-with-devise.html
http://vimeo.com/13105005< /a>
maybe these three pointers will help:
http://wiki.phys.ethz.ch/readme/devise_with_ldap_for_authentication_in_rails_3
http://random-rails.blogspot.com/2010/07/ldap-authentication-with-devise.html
http://vimeo.com/13105005