Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:AuthManagerOAuth

From mediawiki.org
MediaWiki extensions manual
AuthManagerOAuth
Release status: stable
ImplementationUser identity
DescriptionCreate accounts or login using OAuth
Author(s)Moritz Hedtke (Dev.mohetalk)
Latest version0.3.3 (2025/06/20)
Compatibility policyMain branch maintains backward compatibility.
MediaWiki1.35.0+
PHP7.4+
Database changesYes
Tablesauthmanageroauth_linked_accounts
LicenseGNU General Public License 2.0 or later
Download
Changelog
$wgAuthManagerOAuthConfig

TheAuthManagerOAuth extension allows to create accounts or login using OAuth.

Installation

[edit]
  • Download and place the file(s) in a directory calledAuthManagerOAuth in yourextensions/ folder.
  • Only when installing from Git, runComposer to install PHP dependencies, by issuingcomposer install --no-dev in the extension directory.(SeeT173141 for potential complications.)
  • Add the following code at the bottom of yourLocalSettings.php file:
    wfLoadExtension('AuthManagerOAuth');
  • Run theupdate script which will automatically create the necessary database tables that this extension needs.
  • YesDone – Navigate toSpecial:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]
$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.

Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:AuthManagerOAuth&oldid=7698978"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp