@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

Support Bitbucket as an auth provider in Phabricator

Summary: Fixes T4251. Depends on D9761. See D9760 and discussion in D9202.

Test Plan: Authenticated using Bitbucket.

Reviewers: btrahan, asherkin

Reviewed By: asherkin

Subscribers: chad, epriestley

Maniphest Tasks: T4251

Differential Revision: https://secure.phabricator.com/D9762

+29
+2
src/__phutil_library_map__.php
··· 1277 1277 'PhabricatorAuthProviderLDAP' => 'applications/auth/provider/PhabricatorAuthProviderLDAP.php', 1278 1278 'PhabricatorAuthProviderOAuth' => 'applications/auth/provider/PhabricatorAuthProviderOAuth.php', 1279 1279 'PhabricatorAuthProviderOAuth1' => 'applications/auth/provider/PhabricatorAuthProviderOAuth1.php', 1280 + 'PhabricatorAuthProviderOAuth1Bitbucket' => 'applications/auth/provider/PhabricatorAuthProviderOAuth1Bitbucket.php', 1280 1281 'PhabricatorAuthProviderOAuth1JIRA' => 'applications/auth/provider/PhabricatorAuthProviderOAuth1JIRA.php', 1281 1282 'PhabricatorAuthProviderOAuth1Twitter' => 'applications/auth/provider/PhabricatorAuthProviderOAuth1Twitter.php', 1282 1283 'PhabricatorAuthProviderOAuth2' => 'applications/auth/provider/PhabricatorAuthProviderOAuth2.php', ··· 4073 4074 'PhabricatorAuthProviderLDAP' => 'PhabricatorAuthProvider', 4074 4075 'PhabricatorAuthProviderOAuth' => 'PhabricatorAuthProvider', 4075 4076 'PhabricatorAuthProviderOAuth1' => 'PhabricatorAuthProviderOAuth', 4077 + 'PhabricatorAuthProviderOAuth1Bitbucket' => 'PhabricatorAuthProviderOAuth1', 4076 4078 'PhabricatorAuthProviderOAuth1JIRA' => 'PhabricatorAuthProviderOAuth1', 4077 4079 'PhabricatorAuthProviderOAuth1Twitter' => 'PhabricatorAuthProviderOAuth1', 4078 4080 'PhabricatorAuthProviderOAuth2' => 'PhabricatorAuthProviderOAuth',
+27
src/applications/auth/provider/PhabricatorAuthProviderOAuth1Bitbucket.php
··· 1 + <?php 2 + 3 + final class PhabricatorAuthProviderOAuth1Bitbucket 4 + extends PhabricatorAuthProviderOAuth1 { 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 PhutilAuthAdapterOAuthBitbucket(); 21 + } 22 + 23 + protected function getLoginIcon() { 24 + return 'Bitbucket'; 25 + } 26 + 27 + }