Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99436417
PhabricatorAuthProviderOAuth1Twitter.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
Fri, Jan 24, 13:33
Size
871 B
Mime Type
text/x-php
Expires
Sun, Jan 26, 13:33 (2 d)
Engine
blob
Format
Raw Data
Handle
23757434
Attached To
rPH Phabricator
PhabricatorAuthProviderOAuth1Twitter.php
View Options
<?php
final
class
PhabricatorAuthProviderOAuth1Twitter
extends
PhabricatorAuthProviderOAuth1
{
public
function
getProviderName
()
{
return
pht
(
'Twitter'
);
}
public
function
getConfigurationHelp
()
{
$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'
;
}
}
Event Timeline
Log In to Comment