< Extension:CentralAuth < Hooks
| CentralAuthLoginRedirectData | |
|---|---|
| Available from version ??? |
|
| Define function: | public static function onCentralAuthLoginRedirectData( CentralAuthUser $centralUser, array &$data ) { ... }
|
| Attach hook: | $wgHooks['CentralAuthLoginRedirectData'][] = 'MyExtensionHooks::onCentralAuthLoginRedirectData';
|
| Called from: | File(s): CentralAuth / includes/CentralAuthHooks.php Function(s): doCentralLoginRedirect |
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:CentralAuthLoginRedirectData extensions.
Parameters
$centralUser: An instance ofCentralAuthUser$data: An associativearrayof data, containing the following keys:'secret': Astringof random data generated byMWCryptRand::generateHex()'name': Astringrepresenting the name of the central user (filled in byCentralAuthUser::getName())'guid': Aintrepresenting the global user ID of the central user (filled in byCentralAuthUser::getId())'wikiId': Astringrepresenting an ASCII string identifier of the wiki (filled in bywfWikiID())'secureCookies': Aboolrepresenting whether cookies are secure or not'finalProto': Astringrepresenting the final protocol of the page, either'http'or'https''currentProto': Astringrepresenting the current protocol of the page, either'http'or'https'
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.