开发者

Devise - openid + ldap

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.

开发者_Python百科

Thanks!

EDIT: I've resolved it by using omniauth.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜