Extension:CentralAuth/Hooks/CentralAuthSilentLoginRedirect
CentralAuthSilentLoginRedirect | |
---|---|
Available from version ??? (Gerrit change 75154) This hook is called during the cross-wiki login process when the user is redirected back to the original wiki. |
|
Define function: | public static function onCentralAuthSilentLoginRedirect( CentralAuthUser $centralUser, string &$url, array $info ) { ... }
|
Attach hook: | $wgHooks['CentralAuthSilentLoginRedirect'][] = 'MyExtensionHooks::onCentralAuthSilentLoginRedirect';
|
Called from: | File(s): CentralAuth / includes/specials/SpecialCentralLogin.php Function(s): doLoginStart |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:CentralAuthSilentLoginRedirect extensions.
This hook is called during the cross-wiki login process when the user is redirected back to the original wiki. It can be used to modify the redirect URL. The new URL must still point to Special:CentralLogin/complete
. In practice, this is used for mobile domains.
Parameters
edit$centralUser
: An instance ofCentralAuthUser
&$url
: A modifiablestring
, representing a full URL to[[Special:CentralLogin/complete]]
, returns a protocol-relative URL if needed (as provided byWikiReference::getFullURL()
)$info
: Amixed
value containing token information, orfalse
if the value was not found or an error occurred (as provided byCentralAuthUtils::getKeyValueUponExistence()
)