Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F565730
PhabricatorAuthProviderOAuth1Twitter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
882 B
Referenced Files
None
Subscribers
None
PhabricatorAuthProviderOAuth1Twitter.php
View Options
<?php
final
class
PhabricatorAuthProviderOAuth1Twitter
extends
PhabricatorAuthProviderOAuth1
{
public
function
getProviderName
()
{
return
pht
(
'Twitter'
);
}
protected
function
getProviderConfigurationHelp
()
{
$login_uri
=
PhabricatorEnv
::
getURI
(
$this
->
getLoginURI
());
return
pht
(
"To configure Twitter OAuth, create a new application here:"
.
"
\n\n
"
.
"https://dev.twitter.com/apps"
.
"
\n\n
"
.
"When creating your application, use these settings:"
.
"
\n\n
"
.
" - **Callback URL:** Set this to: `%s`"
.
"
\n\n
"
.
"After completing configuration, copy the **Consumer Key** and "
.
"**Consumer Secret** to the fields above."
,
$login_uri
);
}
protected
function
newOAuthAdapter
()
{
return
new
PhutilAuthAdapterOAuthTwitter
();
}
protected
function
getLoginIcon
()
{
return
'Twitter'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 5:39 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
123997
Default Alt Text
PhabricatorAuthProviderOAuth1Twitter.php (882 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment