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

Fix how SQLAuthLogic and SQLRestAuth fetch their user model class. #226

Closed davexunit closed 10 years ago

davexunit commented 10 years ago

I have not tested this because I'm about to get on a bus, but I believe this patch will fix issue #225 or at least approximate the correct patch. The class method user_model has been replaced with user_models, which is a hash that keys user model classes by an authenticator's auth_index. The base SQL authenticator has a method called user_model that will fetch the correct user model class.

Could someone try it out?

davexunit commented 10 years ago

Additionally, if this fix works, I think it should be applied to the encrypted SQL authenticator. I don't think the other patch #224 does the right thing, exactly.

mitfik commented 10 years ago

Thanks!