NN Dodhia
2013-Apr-23 12:57 UTC
Authenticating against external and then internal databases in rails
A system I''m building requires us to authenticate against our clients database to pull user information from their database. However, they also want us to allow external users to log in and access this system. To authenticate against their database we''re using DeviseLDAPAuthenticatable, and were planning on using Devise to add local users. The plan of action at the high level is: User puts in log in detailsif ldap accepts these log in elseif local database excepts these log inelse fail What I''m guessing is that I need to override the authenticate_user! method but it didn''t seem obvious what I''d need to include to make sure that the LDAP users could still log in. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/nsx-AYRkybUJ. For more options, visit https://groups.google.com/groups/opt_out.