Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / auth / provider / PhabricatorBitbucketAuthProvider.php
blob9b99f88386b99589a901c6a59e859cbfaa42cb18
1 <?php
3 final class PhabricatorBitbucketAuthProvider
4 extends PhabricatorOAuth1AuthProvider {
6 public function getProviderName() {
7 return pht('Bitbucket');
10 protected 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.");
19 protected function newOAuthAdapter() {
20 return new PhutilBitbucketAuthAdapter();
23 protected function getLoginIcon() {
24 return 'Bitbucket';