This extension is being used on one or more Wikimedia projects.
clients with authorization code, client credentials, and refresh token grant typesįor more information about OAuth 2.0, visit OAuth/For Developers.
The extension supports creating two types of OAuth 2.0 clients: The Special:AppManagement page provides a simplified set of options for creating and managing OAuth 2.0 clients. URL for rest.php on the OAuth controller wiki To allow WikimediaApiPortalOAuth to make requests to the OAuth server, set $wgRestAllowCrossOriginCookieAuth to true on the OAuth controller wiki. For example, in the case of the beta Wikimedia API Portal, the OAuth controller wiki is the beta instance of Meta-Wiki ( ). On the wiki where WikimediaApiPortalOAuth is installed, set $wgWikimediaApiPortalOAuthMetaRestURL to the URL for rest.php on the OAuth controller wiki.
Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
WfLoadExtension ( 'WikimediaApiPortalOAuth' )
MEDIAWIKI OAUTH CODE
Add the following code at the bottom of your LocalSettings.php:.
MEDIAWIKI OAUTH DOWNLOAD
Download and place the file(s) in a directory called WikimediaApiPortalOAuth in your extensions/ folder.
WikimediaApiPortalOAuth requires MediaWiki 1.35 or later. If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows: There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).Įxtract the snapshot and place it in the extensions/WikimediaApiPortalOAuth/ directory of your MediaWiki installation.
Each branch is associated with a past MediaWiki release.
Some extensions have tags for stable releases.
The extension can be retrieved directly from Git : This extension requires the ability to connect to a wiki acting as an OAuth controller and running OAuth 1.36 or later. The WikimediaApiPortalOAuth extension is designed to connect the API Portal with the OAuth server on Meta-Wiki by providing a user interface for creating and managing OAuth 2.0 clients. Client creation and management for the API Portal Group: