@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorBitbucketAuthProvider
4 extends PhabricatorOAuth1AuthProvider {
5
6 public function getProviderName() {
7 return pht('Bitbucket');
8 }
9
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.");
17 }
18
19 protected function newOAuthAdapter() {
20 return new PhutilBitbucketAuthAdapter();
21 }
22
23 protected function getLoginIcon() {
24 return 'Bitbucket';
25 }
26
27}