Open main menu
This page is a translated version of the page Extension:Azhàr Authentication and the translation is 32% complete.

Other languages:
English • ‎dansk • ‎español • ‎polski • ‎中文 • ‎日本語
OOjs UI icon advanced.svg
Azhàr Authentication
发布状态: 未维护
描述 允许通过Azhàr登录
作者 Derecksontalk
最新版本 1.2 (2014-01-28)
许可协议 GNU通用公眾授權條款2.0
翻译Azhàr Authentication扩展如果在translatewiki.net可用

The Azhàr Authentication extension allows users to login through Azhàr's provisioning and single sign on API.


  • 下载文件,并将其放置在您extensions/文件夹中的AzharAuth目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'AzharAuth' );
    $wgAzharConsumerKey = 'YOUR_CONSUMER_KEY_HERE';
    $wgAzharSecretKey = 'YOUR_SECRET_KEY_HERE';
  • Generate on Azhàr a new set of keys and write them in the configuration (see previous step).
  •   完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

致使用MediaWiki 1.24或更早版本的用户:

上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()。 如果您需要在早期版本(MediaWiki 1.24和更早版本)中安装此扩展,而不是wfLoadExtension( 'AzharAuth' );,您需要使用:

require_once "$IP/extensions/AzharAuth/AzharAuth.php";

Configuration parameters

参数 描述 Mandatory? 默认值
$wgAzharAuthAddGoToIntranetLink If true, a link to the Azhàr intranet homepage is added in the personal links (on Vector and Monobook, they are located in the top-right corner) no true
$wgAzharAuthOnlyLoginSource If true, only allows authentication through Azhàr and disables regular login/logout. Otherwise, Azhàr is an extra option to login. no true
$wgAzharConsumerKey Azhàr single sign on and provisioning API consumer key YES -
$wgAzharSecretKey Azhàr single sign on and provisioning API secret key / shared secret YES -