[Mediawiki-l] Best strategy to populate User data from Single Sign On?

Lane, Ryan laner at NAVO.NAVY.MIL
Thu May 4 13:34:27 UTC 2006


> Now if I can just create a method to determin if the user exists prior to
> new user creation - detailed in:
> http://mail.wikipedia.org/pipermail/mediawiki-l/2006-May/011779.html
> 
> Thanks again,
> Brian
> 
> 

You could add the user's ID as a user option on user creation:

	$user->setOption('uniqueSSOID',$yourUniqueSSOID);

in function initUser() in the authentication plugin you are using. If you do
that, you can search the database based upon the ID.

I'm not sure if the core code currently has any hooks that would allow you
to rename the user when the user logs in, without reporting errors...

I'm glad you brought this up, because I really didn't think about this, and
this is definitely something I'll run into in the future. I'll have to look
into adding support for this in my plugin.

V/r,

Ryan Lane



More information about the MediaWiki-l mailing list