Extension:WSOAuth/Hooks/WSOAuthGetAuthProviders

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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

  • $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