[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/oauthserver/application/ -> PhabricatorOAuthServerApplication.php (source)

   1  <?php
   2  
   3  final class PhabricatorOAuthServerApplication extends PhabricatorApplication {
   4  
   5    public function getName() {
   6      return pht('OAuth Server');
   7    }
   8  
   9    public function getBaseURI() {
  10      return '/oauthserver/';
  11    }
  12  
  13    public function getShortDescription() {
  14      return pht('OAuth Login Provider');
  15    }
  16  
  17    public function getIconName() {
  18      return 'oauthserver';
  19    }
  20  
  21    public function getTitleGlyph() {
  22      return "\xE2\x99\x86";
  23    }
  24  
  25    public function getFlavorText() {
  26      return pht('Login with Phabricator');
  27    }
  28  
  29    public function getApplicationGroup() {
  30      return self::GROUP_ADMIN;
  31    }
  32  
  33    public function isPrototype() {
  34      return true;
  35    }
  36  
  37    public function getHelpURI() {
  38      return PhabricatorEnv::getDoclink('Using the Phabricator OAuth Server');
  39    }
  40  
  41    public function getRoutes() {
  42      return array(
  43        '/oauthserver/' => array(
  44          '(?:query/(?P<queryKey>[^/]+)/)?'
  45            => 'PhabricatorOAuthClientListController',
  46          'auth/' => 'PhabricatorOAuthServerAuthController',
  47          'test/(?P<id>\d+)/' => 'PhabricatorOAuthServerTestController',
  48          'token/' => 'PhabricatorOAuthServerTokenController',
  49          'client/' => array(
  50            'create/' => 'PhabricatorOAuthClientEditController',
  51            'delete/(?P<phid>[^/]+)/' => 'PhabricatorOAuthClientDeleteController',
  52            'edit/(?P<phid>[^/]+)/' => 'PhabricatorOAuthClientEditController',
  53            'view/(?P<phid>[^/]+)/' => 'PhabricatorOAuthClientViewController',
  54          ),
  55        ),
  56      );
  57    }
  58  
  59    protected function getCustomCapabilities() {
  60      return array(
  61        PhabricatorOAuthServerCreateClientsCapability::CAPABILITY => array(
  62          'default' => PhabricatorPolicies::POLICY_ADMIN,
  63        ),
  64      );
  65    }
  66  
  67  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1