Release status: stable | |
|---|---|
| Implementation | User identity |
| Description | Create accounts or login using OAuth |
| Author(s) | Moritz Hedtke (Dev.mohetalk) |
| Latest version | 0.3.3 (2025/06/20) |
| Compatibility policy | Main branch maintains backward compatibility. |
| MediaWiki | 1.35.0+ |
| PHP | 7.4+ |
| Database changes | Yes |
| Tables | authmanageroauth_linked_accounts |
| License | GNU General Public License 2.0 or later |
| Download | GitHub: Note: Changelog |
$wgAuthManagerOAuthConfig | |
TheAuthManagerOAuth extension allows to create accounts or login using OAuth.
AuthManagerOAuth in yourextensions/ folder.composer install --no-dev in the extension directory.(SeeT173141 for potential complications.)wfLoadExtension('AuthManagerOAuth');
$wgAuthManagerOAuthConfig=['github'=>['clientId'=>'xxx','clientSecret'=>'xxx','urlAuthorize'=>'https://github.com/login/oauth/authorize','urlAccessToken'=>'https://github.com/login/oauth/access_token','urlResourceOwnerDetails'=>'https://api.github.com/user'],'google'=>[// ...]];
The values in this keyed array have to conform to the parameter of theGenericProvider constructor athttps://oauth2-client.thephpleague.com/usage/. The key cannot be changed afterwards as it's used in the database for storing the linked accounts.