2015-12-17 21:09:57 +00:00
|
|
|
{
|
|
|
|
"name": "OATHAuth",
|
2020-12-31 03:48:41 +00:00
|
|
|
"version": "0.5.0",
|
2019-05-15 06:04:12 +00:00
|
|
|
"author": [
|
|
|
|
"Ryan Lane",
|
|
|
|
"Robert Vogel <vogel@hallowelt.com>",
|
|
|
|
"Dejan Savuljesku <savuljesku@hallowelt.com>"
|
|
|
|
],
|
2016-01-19 22:13:44 +00:00
|
|
|
"url": "https://www.mediawiki.org/wiki/Extension:OATHAuth",
|
2015-12-17 21:09:57 +00:00
|
|
|
"descriptionmsg": "oathauth-desc",
|
|
|
|
"type": "other",
|
2016-11-12 02:48:49 +00:00
|
|
|
"requires": {
|
2021-05-06 13:39:27 +00:00
|
|
|
"MediaWiki": ">= 1.37.0"
|
2016-11-12 02:48:49 +00:00
|
|
|
},
|
2018-04-11 01:29:26 +00:00
|
|
|
"license-name": "GPL-2.0-or-later AND GPL-3.0-or-later",
|
2019-03-14 14:39:10 +00:00
|
|
|
"attributes": {
|
|
|
|
"OATHAuth": {
|
|
|
|
"Modules": {
|
|
|
|
"totp": "\\MediaWiki\\Extension\\OATHAuth\\Module\\TOTP::factory"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"AutoloadNamespaces": {
|
2019-12-30 23:47:41 +00:00
|
|
|
"MediaWiki\\Extension\\OATHAuth\\": "src/"
|
|
|
|
},
|
|
|
|
"TestAutoloadNamespaces": {
|
2019-05-14 12:22:36 +00:00
|
|
|
"MediaWiki\\Extension\\OATHAuth\\Tests\\": "tests/phpunit/"
|
2019-03-14 14:39:10 +00:00
|
|
|
},
|
2016-10-11 23:47:01 +00:00
|
|
|
"AuthManagerAutoConfig": {
|
|
|
|
"secondaryauth": {
|
2021-01-29 19:49:14 +00:00
|
|
|
"OATHSecondaryAuthenticationProvider": {
|
2019-03-14 14:39:10 +00:00
|
|
|
"class": "\\MediaWiki\\Extension\\OATHAuth\\Auth\\SecondaryAuthenticationProvider",
|
2016-10-11 23:47:01 +00:00
|
|
|
"sort": 50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2019-03-14 14:39:10 +00:00
|
|
|
"ServiceWiringFiles": [
|
2019-05-14 12:22:36 +00:00
|
|
|
"ServiceWiring.php"
|
2019-03-14 14:39:10 +00:00
|
|
|
],
|
2015-12-17 21:09:57 +00:00
|
|
|
"ExtensionMessagesFiles": {
|
|
|
|
"OATHAuthAlias": "OATHAuth.alias.php"
|
|
|
|
},
|
|
|
|
"Hooks": {
|
2020-12-31 03:48:41 +00:00
|
|
|
"AuthChangeFormFields": "main",
|
2022-08-22 17:50:14 +00:00
|
|
|
"LoadExtensionSchemaUpdates": "updater",
|
2020-12-31 03:48:41 +00:00
|
|
|
"GetPreferences": "main",
|
2022-02-14 07:15:17 +00:00
|
|
|
"getUserPermissionsErrors": "main",
|
|
|
|
"UserEffectiveGroups": "main",
|
2022-02-16 09:15:02 +00:00
|
|
|
"UserGetRights": "main",
|
|
|
|
"BeforeCreateEchoEvent": "\\MediaWiki\\Extension\\OATHAuth\\Notifications\\Manager::onBeforeCreateEchoEvent"
|
2020-12-31 03:48:41 +00:00
|
|
|
},
|
|
|
|
"HookHandlers": {
|
|
|
|
"main": {
|
|
|
|
"class": "\\MediaWiki\\Extension\\OATHAuth\\Hook\\HookHandler",
|
|
|
|
"services": [
|
|
|
|
"OATHUserRepository",
|
|
|
|
"PermissionManager",
|
2022-02-14 07:15:17 +00:00
|
|
|
"MainConfig",
|
|
|
|
"UserGroupManager"
|
2020-12-31 03:48:41 +00:00
|
|
|
]
|
2022-08-22 17:50:14 +00:00
|
|
|
},
|
|
|
|
"updater": {
|
|
|
|
"class": "MediaWiki\\Extension\\OATHAuth\\Hook\\UpdateTables"
|
2020-12-31 03:48:41 +00:00
|
|
|
}
|
2015-12-17 21:09:57 +00:00
|
|
|
},
|
|
|
|
"MessagesDirs": {
|
|
|
|
"OATHAuth": [
|
2019-07-04 11:26:14 +00:00
|
|
|
"i18n",
|
|
|
|
"i18n/api"
|
2015-12-17 21:09:57 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"config": {
|
2019-03-14 14:39:10 +00:00
|
|
|
"OATHAuthWindowRadius": {
|
|
|
|
"value": 4
|
|
|
|
},
|
|
|
|
"OATHAuthDatabase": {
|
|
|
|
"value": false
|
|
|
|
},
|
|
|
|
"OATHAuthAccountPrefix": {
|
|
|
|
"value": false
|
2019-05-29 11:24:56 +00:00
|
|
|
},
|
|
|
|
"OATHExclusiveRights": {
|
|
|
|
"value": []
|
2022-02-14 07:15:17 +00:00
|
|
|
},
|
|
|
|
"OATHRequiredForGroups": {
|
|
|
|
"value": []
|
2019-03-14 14:39:10 +00:00
|
|
|
}
|
2015-12-17 21:09:57 +00:00
|
|
|
},
|
|
|
|
"ResourceModules": {
|
2019-03-14 14:39:10 +00:00
|
|
|
"ext.oath.totp.showqrcode": {
|
2016-06-20 07:34:42 +00:00
|
|
|
"scripts": [
|
2019-03-14 14:39:10 +00:00
|
|
|
"totp/jquery.qrcode.js",
|
|
|
|
"totp/qrcode.js",
|
|
|
|
"totp/ext.oath.showqrcode.js"
|
2021-09-05 21:06:04 +00:00
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
2016-06-20 07:34:42 +00:00
|
|
|
]
|
2016-11-14 05:18:06 +00:00
|
|
|
},
|
2019-03-14 14:39:10 +00:00
|
|
|
"ext.oath.totp.showqrcode.styles": {
|
2016-11-14 05:18:06 +00:00
|
|
|
"styles": [
|
2019-03-14 14:39:10 +00:00
|
|
|
"totp/ext.oath.showqrcode.styles.css"
|
2021-09-05 21:06:04 +00:00
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
2016-11-14 05:18:06 +00:00
|
|
|
]
|
2015-12-17 21:09:57 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ResourceFileModulePaths": {
|
2016-06-20 07:34:42 +00:00
|
|
|
"localBasePath": "modules",
|
2019-04-24 10:08:23 +00:00
|
|
|
"remoteExtPath": "OATHAuth/modules"
|
2015-12-17 21:09:57 +00:00
|
|
|
},
|
|
|
|
"SpecialPages": {
|
2020-12-31 04:21:50 +00:00
|
|
|
"DisableOATHForUser": {
|
|
|
|
"class": "\\MediaWiki\\Extension\\OATHAuth\\Special\\DisableOATHForUser",
|
|
|
|
"services": [
|
|
|
|
"OATHUserRepository",
|
|
|
|
"UserFactory"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OATHManage": {
|
|
|
|
"class": "\\MediaWiki\\Extension\\OATHAuth\\Special\\OATHManage",
|
|
|
|
"services": [
|
|
|
|
"OATHUserRepository",
|
|
|
|
"OATHAuth"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"VerifyOATHForUser": {
|
|
|
|
"class": "\\MediaWiki\\Extension\\OATHAuth\\Special\\VerifyOATHForUser",
|
|
|
|
"services": [
|
|
|
|
"OATHUserRepository",
|
|
|
|
"UserFactory"
|
|
|
|
]
|
|
|
|
}
|
2015-12-17 21:09:57 +00:00
|
|
|
},
|
2015-05-26 00:08:47 +00:00
|
|
|
"AvailableRights": [
|
2016-09-29 21:31:09 +00:00
|
|
|
"oathauth-enable",
|
2018-05-20 16:46:53 +00:00
|
|
|
"oathauth-api-all",
|
2019-04-06 22:30:51 +00:00
|
|
|
"oathauth-disable-for-user",
|
2020-02-15 08:57:20 +00:00
|
|
|
"oathauth-verify-user",
|
2019-04-06 22:30:51 +00:00
|
|
|
"oathauth-view-log"
|
2015-05-26 00:08:47 +00:00
|
|
|
],
|
|
|
|
"GroupPermissions": {
|
|
|
|
"*": {
|
2019-04-06 22:30:51 +00:00
|
|
|
"oathauth-disable-for-user": false,
|
|
|
|
"oathauth-view-log": false
|
2018-05-20 16:46:53 +00:00
|
|
|
},
|
2020-03-23 02:32:42 +00:00
|
|
|
"user": {
|
|
|
|
"oathauth-enable": true
|
|
|
|
},
|
2018-05-20 16:46:53 +00:00
|
|
|
"sysop": {
|
2019-04-06 22:30:51 +00:00
|
|
|
"oathauth-disable-for-user": true,
|
2020-02-15 08:57:20 +00:00
|
|
|
"oathauth-verify-user": true,
|
2019-04-06 22:30:51 +00:00
|
|
|
"oathauth-view-log": true
|
2015-05-26 00:08:47 +00:00
|
|
|
}
|
|
|
|
},
|
2016-09-29 21:31:09 +00:00
|
|
|
"GrantPermissions": {
|
|
|
|
"oath": {
|
2021-01-28 23:51:06 +00:00
|
|
|
"oathauth-api-all": true,
|
|
|
|
"oathauth-verify-user": true
|
2016-09-29 21:31:09 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"GrantPermissionGroups": {
|
|
|
|
"oath": "authentication"
|
|
|
|
},
|
2016-09-30 03:12:03 +00:00
|
|
|
"APIModules": {
|
2019-05-14 12:22:36 +00:00
|
|
|
"oathvalidate": "\\MediaWiki\\Extension\\OATHAuth\\Api\\Module\\ApiOATHValidate"
|
2016-09-30 03:12:03 +00:00
|
|
|
},
|
2016-09-29 21:31:09 +00:00
|
|
|
"APIMetaModules": {
|
2019-05-14 12:22:36 +00:00
|
|
|
"oath": "\\MediaWiki\\Extension\\OATHAuth\\Api\\Module\\ApiQueryOATH"
|
2016-09-29 21:31:09 +00:00
|
|
|
},
|
2016-09-30 03:12:03 +00:00
|
|
|
"RateLimits": {
|
|
|
|
"badoath": {
|
2016-10-03 04:32:30 +00:00
|
|
|
"&can-bypass": false,
|
2020-08-28 19:06:56 +00:00
|
|
|
"user": [ 10, 60 ],
|
|
|
|
"user-global": [ 10, 60 ]
|
2016-09-30 03:12:03 +00:00
|
|
|
}
|
|
|
|
},
|
2021-01-29 19:49:14 +00:00
|
|
|
"ReauthenticateTime": {
|
2019-09-11 08:29:43 +00:00
|
|
|
"oathauth-enable": 60
|
|
|
|
},
|
2018-11-02 08:34:44 +00:00
|
|
|
"load_composer_autoloader": true,
|
2019-04-06 22:30:51 +00:00
|
|
|
"LogTypes": [ "oath" ],
|
|
|
|
"LogNames": {
|
|
|
|
"oath": "oath-log-name"
|
|
|
|
},
|
|
|
|
"LogHeaders": {
|
|
|
|
"oath": "oath-log-header"
|
|
|
|
},
|
|
|
|
"LogActionsHandlers": {
|
|
|
|
"oath/*": "LogFormatter"
|
|
|
|
},
|
|
|
|
"LogRestrictions": {
|
|
|
|
"oath": "oathauth-view-log"
|
|
|
|
},
|
2022-06-13 18:21:25 +00:00
|
|
|
"ActionFilteredLogs": {
|
|
|
|
"oath": {
|
|
|
|
"verify": [ "verify" ],
|
|
|
|
"disable-other": [ "disable-other" ]
|
|
|
|
}
|
|
|
|
},
|
2019-03-14 14:39:10 +00:00
|
|
|
"manifest_version": 2
|
2015-12-17 21:09:57 +00:00
|
|
|
}
|