rubycas / rubycas-server

Provides single sign-on authentication for web applications, implementing the server-end of Jasig's CAS protocol.
http://rubycas.github.com
Other
628 stars 270 forks source link

SQLAuthLogic and SQLRestAuth call user_model class method #225

Closed davexunit closed 9 years ago

davexunit commented 10 years ago

First I want to apologize for not noticing this before. I did a search for other SQL authenticators that expect to use the class method user_model and found these two.

davexunit commented 10 years ago

I think that the correct patch for both of these cases is to call the user_models class method and fetch the value for the key @options[:auth_index]. That will retrieve the correct user model class.