mediawiki-extensions-OATHAuth/extension.json
DannyS712 c5ded3d748 Don't try to grant oathauth-enable to *
Bug: T248282
Depends-On: Ia4c04645bff5e19adbc31557449fc0a9b0ed6d5a
Change-Id: I1030ea396abe3b888ecb001f0790f73e7ef3eff0
2020-03-23 02:34:17 +00:00

156 lines
3.5 KiB
JSON

{
"name": "OATHAuth",
"version": "0.4.4",
"author": [
"Ryan Lane",
"Robert Vogel <vogel@hallowelt.com>",
"Dejan Savuljesku <savuljesku@hallowelt.com>"
],
"url": "https://www.mediawiki.org/wiki/Extension:OATHAuth",
"descriptionmsg": "oathauth-desc",
"type": "other",
"requires": {
"MediaWiki": ">= 1.32.0"
},
"license-name": "GPL-2.0-or-later AND GPL-3.0-or-later",
"attributes": {
"OATHAuth": {
"Modules": {
"totp": "\\MediaWiki\\Extension\\OATHAuth\\Module\\TOTP::factory"
}
}
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\OATHAuth\\": "src/"
},
"TestAutoloadNamespaces": {
"MediaWiki\\Extension\\OATHAuth\\Tests\\": "tests/phpunit/"
},
"AuthManagerAutoConfig": {
"secondaryauth": {
"OATHSecondaryAuthenticationProvider":{
"class": "\\MediaWiki\\Extension\\OATHAuth\\Auth\\SecondaryAuthenticationProvider",
"sort": 50
}
}
},
"ServiceWiringFiles": [
"ServiceWiring.php"
],
"ExtensionMessagesFiles": {
"OATHAuthAlias": "OATHAuth.alias.php"
},
"Hooks": {
"AuthChangeFormFields": "\\MediaWiki\\Extension\\OATHAuth\\Hook\\AuthChangeFormFields\\TOTPExtendTokenField::callback",
"TwoFactorIsEnabled": "\\MediaWiki\\Extension\\OATHAuth\\Hook\\TwoFactorIsEnabled\\SetIsEnabled::callback",
"LoadExtensionSchemaUpdates": "\\MediaWiki\\Extension\\OATHAuth\\Hook\\LoadExtensionSchemaUpdates\\UpdateTables::callback",
"GetPreferences": "\\MediaWiki\\Extension\\OATHAuth\\Hook\\GetPreferences\\AuthModule::callback",
"getUserPermissionsErrors": "\\MediaWiki\\Extension\\OATHAuth\\Hook\\GetUserPermissionsErrors\\CheckExclusiveRights::callback"
},
"MessagesDirs": {
"OATHAuth": [
"i18n",
"i18n/api"
]
},
"config": {
"OATHAuthWindowRadius": {
"value": 4
},
"OATHAuthDatabase": {
"value": false
},
"OATHAuthSecret": {
"value": false
},
"OATHAuthAccountPrefix": {
"value": false
},
"OATHExclusiveRights": {
"value": []
}
},
"ResourceModules": {
"ext.oath.totp.showqrcode": {
"scripts": [
"totp/jquery.qrcode.js",
"totp/qrcode.js",
"totp/ext.oath.showqrcode.js"
]
},
"ext.oath.totp.showqrcode.styles": {
"styles": [
"totp/ext.oath.showqrcode.styles.css"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "OATHAuth/modules"
},
"SpecialPages": {
"DisableOATHForUser": "\\MediaWiki\\Extension\\OATHAuth\\Special\\DisableOATHForUser",
"OATHManage": "\\MediaWiki\\Extension\\OATHAuth\\Special\\OATHManage"
},
"AvailableRights": [
"oathauth-enable",
"oathauth-api-all",
"oathauth-disable-for-user",
"oathauth-view-log"
],
"GroupPermissions": {
"*": {
"oathauth-disable-for-user": false,
"oathauth-view-log": false
},
"user": {
"oathauth-enable": true
},
"sysop": {
"oathauth-disable-for-user": true,
"oathauth-view-log": true
}
},
"GrantPermissions": {
"oath": {
"oathauth-api-all": true
}
},
"GrantPermissionGroups": {
"oath": "authentication"
},
"APIModules": {
"oathvalidate": "\\MediaWiki\\Extension\\OATHAuth\\Api\\Module\\ApiOATHValidate"
},
"APIMetaModules": {
"oath": "\\MediaWiki\\Extension\\OATHAuth\\Api\\Module\\ApiQueryOATH"
},
"RateLimits": {
"badoath": {
"&can-bypass": false,
"user": [
10,
60
]
}
},
"ReauthenticateTime": {
"oathauth-enable": 60
},
"load_composer_autoloader": true,
"LogTypes": [ "oath" ],
"LogNames": {
"oath": "oath-log-name"
},
"LogHeaders": {
"oath": "oath-log-header"
},
"LogActionsHandlers": {
"oath/*": "LogFormatter"
},
"LogRestrictions": {
"oath": "oathauth-view-log"
},
"manifest_version": 2
}