Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548565
PhabricatorDisqusAuthProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
919 B
Referenced Files
None
Subscribers
None
PhabricatorDisqusAuthProvider.php
View Options
<?php
final
class
PhabricatorDisqusAuthProvider
extends
PhabricatorOAuth2AuthProvider
{
public
function
getProviderName
()
{
return
pht
(
'Disqus'
);
}
protected
function
getProviderConfigurationHelp
()
{
$login_uri
=
PhabricatorEnv
::
getURI
(
$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
PhutilDisqusAuthAdapter
();
}
protected
function
getLoginIcon
()
{
return
'Disqus'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:51 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
111228
Default Alt Text
PhabricatorDisqusAuthProvider.php (919 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment