Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102439178
PhabricatorBitbucketAuthProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 20, 18:01
Size
712 B
Mime Type
text/x-php
Expires
Sat, Feb 22, 18:01 (2 d)
Engine
blob
Format
Raw Data
Handle
24357328
Attached To
rPH Phabricator
PhabricatorBitbucketAuthProvider.php
View Options
<?php
final
class
PhabricatorBitbucketAuthProvider
extends
PhabricatorOAuth1AuthProvider
{
public
function
getProviderName
()
{
return
pht
(
'Bitbucket'
);
}
protected
function
getProviderConfigurationHelp
()
{
return
pht
(
"To configure Bitbucket OAuth, log in to Bitbucket and go to "
.
"**Manage Account** > **Access Management** > **OAuth**.
\n\n
"
.
"Click **Add Consumer** and create a new application.
\n\n
"
.
"After completing configuration, copy the **Key** and "
.
"**Secret** to the fields above."
);
}
protected
function
newOAuthAdapter
()
{
return
new
PhutilBitbucketAuthAdapter
();
}
protected
function
getLoginIcon
()
{
return
'Bitbucket'
;
}
}
Event Timeline
Log In to Comment