Open main menu

Extension:TwitterLogin/de

This page is a translated version of the page Extension:TwitterLogin and the translation is 0% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎中文 • ‎日本語
MediaWiki-Erweiterungen
OOjs UI icon advanced.svg
TwitterLogin
Erscheinungsstatus: nicht betreut
Einbindung User identity
Beschreibung Register and log in (authenticate) to a MediaWiki wiki using your Twitter account
Autor(en) David Raison and Dave Challis (Clausekwistalk)
Letzte Version 0.03 (2015-01-11)
MediaWiki 1.23+
Datenbankänderungen Ja
Lizenz GNU Lesser General Public License 3.0 or later
Herunterladen
Beispiel dev.hacker.lu wiki
$wgConsumerKey, $wgConsumerSecret
Übersetze die TwitterLogin Erweiterung wenn sie auf translatewiki.net verfügbar ist
Prüfe die Benutzungs- und Versionsmatrix.

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.

Contents

Known issues

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).

Setup

Dependencies

The twitteroauth library requires the php-curl module.

Installing

  • Füge folgenden Code am Ende deiner LocalSettings.php hinzu:
    require_once "$IP/extensions/TwitterLogin/TwitterLogin.php";
    
  • Führe das Aktualisierungsskript aus, welches automatisch die notwendigen Datenbanktabellen erstellt, die diese Erweiterung braucht.
  • If necessary configure at your convenience
  •   Erledigt – Navigiere zu Special:Version in deinem Wiki (bei Einstellung auf deutsch nach Spezial:Version), um zu prüfen, dass die Erweiterung erfolgreich installiert ist.

Configuration

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]';

Release notes

  • 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.

Development

Todo

  • Support tying Twitter screen-names to existing MediaWiki accounts.
  • 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.