[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/auth/provider/ -> PhabricatorBitbucketAuthProvider.php (source)

   1  <?php
   2  
   3  final class PhabricatorBitbucketAuthProvider
   4    extends PhabricatorOAuth1AuthProvider {
   5  
   6    public function getProviderName() {
   7      return pht('Bitbucket');
   8    }
   9  
  10    public function getProviderConfigurationHelp() {
  11      return pht(
  12        "To configure Bitbucket OAuth, log in to Bitbucket and go to ".
  13        "**Manage Account** > **Access Management** > **OAuth**.\n\n".
  14        "Click **Add Consumer** and create a new application.\n\n".
  15        "After completing configuration, copy the **Key** and ".
  16        "**Secret** to the fields above.");
  17    }
  18  
  19    protected function newOAuthAdapter() {
  20      return new PhutilBitbucketAuthAdapter();
  21    }
  22  
  23    protected function getLoginIcon() {
  24      return 'Bitbucket';
  25    }
  26  
  27  }


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