summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/OATHAuth/extension.json
blob: c6b5838800b9ada6cddb7b4302e841bd0cd30a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
	"name": "OATHAuth",
	"version": "0.2.2",
	"author": "Ryan Lane",
	"url": "https://www.mediawiki.org/wiki/Extension:OATHAuth",
	"descriptionmsg": "oathauth-desc",
	"type": "other",
	"requires": {
		"MediaWiki": ">= 1.31.0"
	},
	"license-name": "GPL-2.0-or-later AND GPL-3.0-or-later",
	"AutoloadClasses": {
		"ApiOATHValidate": "includes/api/ApiOATHValidate.php",
		"ApiQueryOATH": "includes/api/ApiQueryOATH.php",
		"OATHAuthHooks": "includes/OATHAuthHooks.php",
		"OATHAuthKey": "includes/OATHAuthKey.php",
		"OATHAuthUtils": "includes/OATHAuthUtils.php",
		"OATHUserRepository": "includes/OATHUserRepository.php",
		"HOTP": "includes/lib/hotp.php",
		"HOTPResult": "includes/lib/hotp.php",
		"Base32": "includes/lib/base32.php",
		"OATHUser": "includes/OATHUser.php",
		"SpecialOATH": "includes/special/SpecialOATH.php",
		"SpecialOATHEnable": "includes/special/SpecialOATHEnable.php",
		"SpecialOATHDisable": "includes/special/SpecialOATHDisable.php",
		"ProxySpecialPage": "includes/special/ProxySpecialPage.php",
		"TOTPAuthenticationRequest": "includes/auth/TOTPAuthenticationRequest.php",
		"TOTPSecondaryAuthenticationProvider": "includes/auth/TOTPSecondaryAuthenticationProvider.php"
	},
	"AuthManagerAutoConfig": {
		"secondaryauth": {
			"TOTPSecondaryAuthenticationProvider":{
				"class": "TOTPSecondaryAuthenticationProvider",
				"sort": 50
			}
		}
	},
	"ExtensionMessagesFiles": {
		"OATHAuthAlias": "OATHAuth.alias.php"
	},
	"Hooks": {
		"AuthChangeFormFields": [
			"OATHAuthHooks::onAuthChangeFormFields"
		],
		"TwoFactorIsEnabled": [
			"OATHAuthHooks::onTwoFactorIsEnabled"
		],
		"LoadExtensionSchemaUpdates": [
			"OATHAuthHooks::onLoadExtensionSchemaUpdates"
		],
		"GetPreferences": [
			"OATHAuthHooks::onGetPreferences"
		]
	},
	"MessagesDirs": {
		"OATHAuth": [
			"i18n"
		]
	},
	"config": {
		"OATHAuthWindowRadius": 4,
		"OATHAuthDatabase": false,
		"OATHAuthSecret": false,
		"OATHAuthAccountPrefix": false
	},
	"ResourceModules": {
		"ext.oath.showqrcode": {
			"scripts": [
				"jquery.qrcode.js",
				"qrcode.js",
				"ext.oath.showqrcode.js"
			]
		},
		"ext.oath.showqrcode.styles": {
			"styles": [
				"ext.oath.showqrcode.styles.css"
			]
		}
	},
	"ResourceFileModulePaths": {
		"localBasePath": "modules",
		"remoteExtPath": "OATHAuth"
	},
	"SpecialPages": {
		"OATH": "SpecialOATH"
	},
	"AvailableRights": [
		"oathauth-enable",
		"oathauth-api-all"
	],
	"GroupPermissions": {
		"*": {
			"oathauth-enable": true
		}
	},
	"GrantPermissions": {
		"oath": {
			"oathauth-api-all": true
		}
	},
	"GrantPermissionGroups": {
		"oath": "authentication"
	},
	"APIModules": {
		"oathvalidate": "ApiOATHValidate"
	},
	"APIMetaModules": {
		"oath": "ApiQueryOATH"
	},
	"RateLimits": {
		"badoath": {
			"&can-bypass": false,
			"user": [
				10,
				60
			]
		}
	},
	"manifest_version": 1
}