Erweiterung:WikimediaApiPortalOAuth

From mediawiki.org
This page is a translated version of the page Extension:WikimediaApiPortalOAuth and the translation is 83% complete.
MediaWiki-Erweiterungen
WikimediaApiPortalOAuth
Freigabestatus: stabil
Einbindung Benutzer-Schnittstelle
Beschreibung Extension to provide user interface and API client support to the Wikimedia API Portal
MediaWiki 1.35+
Lizenz GNU General Public License 2.0 oder neuer
Herunterladen
  • $wgWikimediaApiPortalOAuthMetaApiURL
  • $wgWikimediaApiPortalOAuthMetaRestURL
  • wikimediaapiportaloauth-manage-oauth
Quarterly downloads 1 (Ranked 146th)
Übersetze die WikimediaApiPortalOAuth-Erweiterung, wenn sie auf translatewiki.net verfügbar ist
Probleme Offene Aufgaben · Einen Fehler melden

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. This extension requires the ability to connect to a wiki acting as an OAuth controller and running OAuth 1.36 or later.

Herunterladen

Die Erweiterung kann direkt von Git bezogen werden [?]:

  • Den Code ansehen
  • Einige Erweiterungen haben Tags für stabile Versionen.
  • Jeder Zweig ist mit einer früheren MediaWiki-Freigabe verknüpft. Es gibt auch einen „Master“-Zweig, der die aktuellste Alpha-Version enthält (möglicherweise ist dafür eine Alpha-Version von MediaWiki erforderlich).

Extrahiere den Snapshot und kopiere ihn in das extensions/WikimediaApiPortalOAuth/-Verzeichnis der MediaWiki-Installation.

Falls man sich mit git auskennt und einen Konsolen-Zugang zum Server hat, kann man die Erweiterung auch so bekommen:

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WikimediaApiPortalOAuth.git

Installation

WikimediaApiPortalOAuth requires MediaWiki 1.35 or later.

  • Download and place the file(s) in a directory called WikimediaApiPortalOAuth in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'WikimediaApiPortalOAuth' );
  • Yes Erledigt - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Konfiguration

On the wiki where WikimediaApiPortalOAuth is installed, set $wgWikimediaApiPortalOAuthMetaRestURL to the URL for rest.php 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 (https://meta.wikimedia.beta.wmflabs.org/w/rest.php). To allow WikimediaApiPortalOAuth to make requests to the OAuth server, set $wgRestAllowCrossOriginCookieAuth to true on the OAuth controller wiki.

Variable name Required? Default Type Description
$wgWikimediaApiPortalOAuthMetaRestURL Optional https://meta.wikimedia.org/w/rest.php String URL for rest.php on the OAuth controller wiki

Verwendung

The Special:AppManagement page provides a simplified set of options for creating and managing OAuth 2.0 clients. The extension supports creating two types of OAuth 2.0 clients:

  • owner-only clients
  • clients with authorization code, client credentials, and refresh token grant types

For more information about OAuth 2.0, visit OAuth/For Developers.