< Extension:WSOAuth < Hooks
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
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.