Extension:TwitterLogin/hi
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{extension}} infobox. |
![]() प्रकाशन की स्थिति: अनानुरक्षित |
|
---|---|
कार्यान्वयन | सदस्य परिचय |
विवरण | 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 Lesser साधारण सार्वजनिक लाइसेंस 3.0 या उसके बाद |
डाउनलोड करें | |
उदाहरण | dev.hacker.lu wiki |
$wgConsumerKey, $wgConsumerSecret |
|
TwitterLogin एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है | |
मुद्दे | अधूरे कार्य · बग की रिपोर्ट करें |
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.
Installing
- फाइलों को डाउनलोड करें और अपने
extensions/
फोल्डर केTwitterLogin
नामक डिरेक्ट्री में डालें। - अपनी $LocalSettings के नीचे निम्नलिखित कोड जोड़ें:
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.
विकास
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.