Extension:TwitterLogin

This page is a translated version of the page Extension:TwitterLogin and the translation is 36% complete.
MediaWiki 拡張機能マニュアル
TwitterLogin
リリースの状態: 保守されていない
実装 利用者識別
説明 Register and log in (authenticate) to a MediaWiki wiki using your Twitter account
作者 David Raison and Dave Challis (Clausekwisトーク)
最新バージョン 0.03 (2015-01-11)
MediaWiki 1.23+
データベースの変更 はい
ライセンス GNU 劣等一般公衆利用許諾書 3.0 以降
ダウンロード
dev.hacker.lu wiki
$wgConsumerKey, $wgConsumerSecret
Quarterly downloads 5 (Ranked 168th)
translatewiki.net で翻訳を利用できる場合は、TwitterLogin 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

The TwitterLogin extension adds Twitter OAuth sign up capabilities to MediaWiki. The code is derived from Dave Challis' implementation done for Web8D 2010 and also uses the twitteroauth library by Abraham Williams.

You need to register an application with Twitter in order to be able to use this extension. See the Configuration section for more details on how to register a Twitter app.

既知の問題点

This extension does not work with MediaWiki 1.19 and higher when you require your users to confirm their email addresses ($wgEmailConfirmToEdit = true), since setting an email address now requires a password (which does not exist for users who authenticate through Twitter).

セットアップ

依存関係

The twitteroauth library requires the php-curl module.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のTwitterLoginという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php の末尾に追加します:
    require_once "$IP/extensions/TwitterLogin/TwitterLogin.php";
    
  • 更新スクリプトを実行します。このスクリプトは、この拡張機能が必要とするデータベーステーブルを自動的に作成します。
  • If necessary configure at your convenience
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

In order to use this extension, you will need to register your MediaWiki installation as a Twitter app. You can do so here.

You will need to set a callback url in your app's settings. This will in most cases be https://wouwikidomain.tld/wiki/Special:TwitterLogin/callback.

When you have registered your application, you will get a consumer key and secret. Add these to your LocalSettings.php file, just below the line where you required the extension:

$wgConsumerKey = '[yourkey]';
$wgConsumerSecret = '[yoursecret]';

更新履歴

  • 0.1 - Initial release.
  • 0.2 - Now uses MediaWiki's http class instead of curl directly.
  • 0.3 - Now uses Twitter's 1.1 API link.

開発

今後の課題

  • 既存のMediaWikiアカウントにTwitterアカウントを関連付けるサポート
  • Redirect first time users to their preferences screen to let them confirm their email address.
  • Add an option to be set in LocalSettings.php whether Twitter users should be automatically emailconfirmed or not.