Manual:Hooks/AutoAuthenticate
From MediaWiki.org
This feature has been deprecated and should not be used with current versions of MediaWiki.
This feature was deprecated (or possibly removed completely) in version 1.13.0.
| AutoAuthenticate | |
|---|---|
| Available from version 1.5.4 Removed in version 1.13.0 Called to authenticate users on external/environmental means |
|
*Define function: |
function fnMyHook( &$user ) { ... }
|
*Attach hook: |
$wgHooks['AutoAuthenticate'][] = 'fnMyHook'; |
| Called from: | StubObject.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:AutoAuthenticate extensions.
Warning: This hook doesn't exist anymore in 1.13 or above, use UserLoadFromSession instead.
Note: The return result for this hook is not used by MediaWiki.
[edit] 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.