Merge "registration: Support Change/RemoveCredentialsBlacklist in extension.json"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 24 Jun 2016 14:34:06 +0000 (14:34 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 24 Jun 2016 14:34:06 +0000 (14:34 +0000)
1  2 
docs/extension.schema.json
includes/registration/ExtensionProcessor.php

                        "type": "object",
                        "description": "Central ID lookup providers"
                },
+               "ChangeCredentialsBlacklist": {
+                       "type": "object",
+                       "description": "AuthenticationRequest classes which can only be used internally for credentials change"
+               },
+               "RemoveCredentialsBlacklist": {
+                       "type": "object",
+                       "description": "AuthenticationRequest classes which can only be used internally for credentials removal"
+               },
                "namespaces": {
                        "type": "array",
                        "description": "Method to add extra namespaces",
                                }
                        }
                },
 +              "GrantPermissions": {
 +                      "type": "object",
 +                      "description": "Map of permissions granted to authorized consumers to their bundles, called 'grants'",
 +                      "patternProperties": {
 +                              "^[a-z]+$": {
 +                                      "type": "object",
 +                                      "patternProperties": {
 +                                              "^[a-z]+$": {
 +                                                      "type": "boolean"
 +                                              }
 +                                      }
 +                              }
 +                      }
 +              },
 +              "GrantPermissionGroups": {
 +                      "type": "object",
 +                      "description": "Map of grants to their UI grouping",
 +                      "patternProperties": {
 +                              "^[a-z]+$": {
 +                                      "type": "string"
 +                              }
 +                      }
 +              },
                "ImplicitGroups": {
                        "type": "array",
                        "description": "Implicit groups"
@@@ -15,8 -15,6 +15,8 @@@ class ExtensionProcessor implements Pro
                'HiddenPrefs',
                'GroupPermissions',
                'RevokePermissions',
 +              'GrantPermissions',
 +              'GrantPermissionGroups',
                'ImplicitGroups',
                'GroupsAddToSelf',
                'GroupsRemoveFromSelf',
@@@ -28,6 -26,8 +28,8 @@@
                'SessionProviders',
                'AuthManagerAutoConfig',
                'CentralIdLookupProviders',
+               'ChangeCredentialsBlacklist',
+               'RemoveCredentialsBlacklist',
                'RateLimits',
                'RecentChangesFlags',
                'MediaHandlers',
@@@ -63,7 -63,6 +65,7 @@@
        protected static $mergeStrategies = [
                'wgGroupPermissions' => 'array_plus_2d',
                'wgRevokePermissions' => 'array_plus_2d',
 +              'wgGrantPermissions' => 'array_plus_2d',
                'wgHooks' => 'array_merge_recursive',
                'wgExtensionCredits' => 'array_merge_recursive',
                'wgExtraGenderNamespaces' => 'array_plus',