Extension:WikimediaApiPortalOAuth

From mediawiki.org
This page is a translated version of the page Extension:WikimediaApiPortalOAuth and the translation is 83% complete.
MediaWiki 拡張機能マニュアル
WikimediaApiPortalOAuth
リリースの状態: 安定
実装 ユーザー インターフェイス
説明 Extension to provide user interface and API client support to the Wikimedia API Portal
作者 Dejan Savuljesku, Robert Vogel
MediaWiki 1.35+
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgWikimediaApiPortalOAuthMetaApiURL
  • $wgWikimediaApiPortalOAuthMetaRestURL
  • wikimediaapiportaloauth-manage-oauth
Quarterly downloads 1 (Ranked 146th)
translatewiki.net で翻訳を利用できる場合は、WikimediaApiPortalOAuth 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

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.

ダウンロード

拡張機能は、Git から直接取得できる場合があります [?]:

  • コードを参照
  • 一部の拡張機能には安定版リリースのタグがあります。
    • タグを参照
    • タグを選択します
    • 「スナップショット」をクリックします
  • 各ブランチは過去の MediaWiki リリースと関連付けられています。 最新のアルファ バージョンを含む「master」ブランチもあります (MediaWiki のアルファ バージョンが必要な場合用)。

スナップショットを展開して、MediaWiki インストレーション内の extensions/WikimediaApiPortalOAuth/ ディレクトリに配置します。

git に馴染みがあり、かつサーバーにシェルでアクセスできる場合は、拡張機能を以下のようにして取得することもできます:

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

インストール

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 完了 - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

設定

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 省略可能 https://meta.wikimedia.org/w/rest.php String URL for rest.php on the OAuth controller wiki

使用法

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.