pht('Using the Phabricator OAuth Server'), 'href' => PhabricatorEnv::getDoclink( 'Using the Phabricator OAuth Server'), ), ); } public function getRoutes() { return array( '/oauthserver/' => array( '(?:query/(?P[^/]+)/)?' => 'PhabricatorOAuthClientListController', 'auth/' => 'PhabricatorOAuthServerAuthController', 'token/' => 'PhabricatorOAuthServerTokenController', 'client/' => array( 'create/' => 'PhabricatorOAuthClientEditController', 'delete/(?P\d+)/' => 'PhabricatorOAuthClientDeleteController', 'edit/(?P\d+)/' => 'PhabricatorOAuthClientEditController', 'view/(?P\d+)/' => 'PhabricatorOAuthClientViewController', 'secret/(?P\d+)/' => 'PhabricatorOAuthClientSecretController', 'test/(?P\d+)/' => 'PhabricatorOAuthClientTestController', ), ), ); } protected function getCustomCapabilities() { return array( PhabricatorOAuthServerCreateClientsCapability::CAPABILITY => array( 'default' => PhabricatorPolicies::POLICY_ADMIN, ), ); } }