AuthSource namespace possible?
Added by Satya P over 13 years ago
Hi, folks. I'm trying to add a large number of AuthSources.
I have a number of databases each with their own user tables (3 in each database, but that's a detail we don't need for this discussion -- yeah, I'm doing it wrong).
The database structure and auth code are the same for all the DBs. So, of course, I'll be factoring out common code.
Now I'd like to not clutter app/models/ with a bunch of AuthSourceCalipsoFoo, AuthSourceCalipsoBar classes. I'd like to do
AuthSourceCalipso::Foo, AuthSourceCalipso::Bar
where Foo and Bar correspond to the other databases.
Is this possible, is there a better way that I'm missing, and:
(referring to http://www.redmine.org/projects/redmine/wiki/Alternativecustom_authentication_HowTo )
Will specifying a type of "mysql:calipso:foo" work fine?
Thanks all!
Replies (1)
RE: AuthSource namespace possible?
-
Added by Satya P over 13 years ago
For the record, yes, this is possible.