Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F118547211
PhabricatorAuthProviderOAuthDisqus.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, Jun 20, 20:56
Size
893 B
Mime Type
text/x-php
Expires
Sun, Jun 22, 20:56 (2 d)
Engine
blob
Format
Raw Data
Handle
26897580
Attached To
rPH Phabricator
PhabricatorAuthProviderOAuthDisqus.php
View Options
<?php
final
class
PhabricatorAuthProviderOAuthDisqus
extends
PhabricatorAuthProviderOAuth
{
public
function
getProviderName
()
{
return
pht
(
'Disqus'
);
}
public
function
getConfigurationHelp
()
{
$login_uri
=
$this
->
getLoginURI
();
return
pht
(
"To configure Disqus OAuth, create a new application here:"
.
"
\n\n
"
.
"http://disqus.com/api/applications/"
.
"
\n\n
"
.
"Create an application, then adjust these settings:"
.
"
\n\n
"
.
" - **Callback URL:** Set this to `%s`"
.
"
\n\n
"
.
"After creating an application, copy the **Public Key** and "
.
"**Secret Key** to the fields above (the **Public Key** goes in "
.
"**OAuth App ID**)."
,
$login_uri
);
}
protected
function
newOAuthAdapter
()
{
return
new
PhutilAuthAdapterOAuthDisqus
();
}
protected
function
getLoginIcon
()
{
return
'Disqus'
;
}
}
Event Timeline
Log In to Comment