Rowan Collins wrote:
On Fri, 12 Nov 2004 16:54:04 +0100, peter peter@wa.se wrote:
Any better ideas anyone?
Well, one thing that occurs to me that you could do a little bit better/simpler is to just generate the appropriate login cookies, rather than actually posting the login forms for both. The only thing I'm not sure about there, though, is how PHP sessions work, and whether you'd need to actually process those "properly", rather than
The other thing worth mentioning, in terms of longer term planning on this topic, is that a "single login" system for multiple instances of MediaWiki should be coming at some point. The exact details have yet to be finalised, due to the problems of migrating the huge number of existing users on all the Wikimedia projects (several hundred different wikis, once you've counted every language version of each project); but, eventually, it will probably lead to a user management architecture that would be more amenable to this kind of hack.
I had the same though, of actually just genrate the appropriate login cookies and session variables. Sure that would have been easier. I don't know why I didn't actually. I just took a random solution of the two. Maybe that would have been just easier and better. Maybe I will redo it like that.
I might mention that this project of mine is very small, it is just a small community for some people and at the moment I only have about 20 users, and don't expept the number to grow, that doesn't excuse my simple hacks, but might explain them.
About shared user management. The ideas of having one shared login system is not that bad. We already see things like Microsoft Passport and Drupal and the thought is not bad at all, but what we need would rather be a user management framework with database, registration and login than a shared global database that those systems use. That would be nice.
/peter