扩展:TwitterLogin
![]() | 此扩展目前不再活跃维护! 尽管它可能仍然工作,但任何错误报告或功能请求将很可能被忽略。 如果您对承担开发与维护该扩展的任务工作感兴趣,您可以请求自己的存储库。 作为礼貌,您或许可以联络作者。 或者您应移除该模板,并在页面的{{extension}}信息框中将您自己列为扩展的维护人员。 |
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 |
|
翻譯TwitterLogin擴充功能如在translatewiki.net可用 | |
问题 | 尚未完成的工作 · 回報錯誤 |
此扩展将Twitter OAuth注册机能添加到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
完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。
配置
为了使用此扩展,您需要注册您的MediaWiki安装副本为Twitter应用。 您可以在此做它。
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 - 初始发行。
- 0.2 - Now uses MediaWiki's http class instead of curl directly.
- 0.3 - Now uses Twitter's 1.1 API link.
开发
待办事项
- 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.
- Unmaintained extensions/zh
- User identity extensions/zh
- LGPL licensed extensions/zh
- Extensions in Wikimedia version control/zh
- BeforePageDisplay extensions/zh
- LoadExtensionSchemaUpdates extensions/zh
- UserLoadFromSession extensions/zh
- UserLogoutComplete extensions/zh
- All extensions/zh
- Twitter extensions/zh
- Login extensions/zh