Extension:WSOAuth/Hooks/WSOAuthGetAuthProviders
Appearance
WSOAuthGetAuthProviders | |
---|---|
Available from version 4.0 called when retrieving the list of auth providers; used to add new auth providers to the list |
|
Define function: | public static function onWSOAuthGetAuthProviders( &auth_providers ) { ... }
|
Attach hook: | $wgHooks['WSOAuthGetAuthProviders'][] = 'MyExtensionHooks::onWSOAuthGetAuthProviders';
|
Called from: | File(s): WSOAuth / src/WSOAuth.php Function(s): getAuthProviders |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:WSOAuthGetAuthProviders extensions.
Details
[edit]- $auth_providers: Key-value pair of authentication providers, where the key is the name of the authentication provider and the value is the name of the authentication provider's class