2013-06-16 19:16:14 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorAuthProviderOAuthDisqus
|
|
|
|
extends PhabricatorAuthProviderOAuth {
|
|
|
|
|
|
|
|
public function getProviderName() {
|
|
|
|
return pht('Disqus');
|
|
|
|
}
|
|
|
|
|
2013-06-20 20:18:48 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2013-06-16 19:16:14 +02:00
|
|
|
protected function newOAuthAdapter() {
|
|
|
|
return new PhutilAuthAdapterOAuthDisqus();
|
|
|
|
}
|
|
|
|
|
2013-06-17 01:31:57 +02:00
|
|
|
protected function getLoginIcon() {
|
|
|
|
return 'Disqus';
|
|
|
|
}
|
|
|
|
|
2013-06-16 19:16:14 +02:00
|
|
|
}
|