Manual:Hooks/AutoAuthenticate

Category:MediaWiki hooks#AutoAuthenticate Category:Hooks added in MediaWiki 1.5.4#AutoAuthenticate Category:MediaWiki deprecated or obsolete features#AutoAuthenticate Category:Hooks removed in MediaWiki 1.13.0#AutoAuthenticate
AutoAuthenticate
Available from version 1.5.4
Removed in version 1.13.0Category:Removed hooks#AutoAuthenticate
Called to authenticate users on external/environmental means
Define function:
public static function onAutoAuthenticate( &$user ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"AutoAuthenticate": "MediaWiki\\Extension\\MyExtension\\Hooks::onAutoAuthenticate"
	}
}
Called from: File(s): StubObject.phpCategory:MediaWiki hooks included in StubObject.php#AutoAuthenticate
Interface: AutoAuthenticateHook.php

For more information about attaching hooks, see Manual:Hooks .

The return result for this hook is not used by MediaWiki.

Details

  • $user: A user object to be setup by the external authentication extension. Once an extension creates and logs in a user, they should assign that user to this object.
Category:Hooks added in MediaWiki 1.5.4 Category:Hooks removed in MediaWiki 1.13.0 Category:MediaWiki deprecated or obsolete features Category:MediaWiki hooks Category:MediaWiki hooks included in StubObject.php Category:Removed hooks