Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93853520
PhabricatorTwitterAuthProvider.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
Mon, Dec 2, 00:55
Size
871 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 00:55 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
22666962
Attached To
rPH Phabricator
PhabricatorTwitterAuthProvider.php
View Options
<?php
final
class
PhabricatorTwitterAuthProvider
extends
PhabricatorOAuth1AuthProvider
{
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
PhutilTwitterAuthAdapter
();
}
protected
function
getLoginIcon
()
{
return
'Twitter'
;
}
}
Event Timeline
Log In to Comment