Guarantee terms in PhabricatorAuthPasswordEngine are strings
[phabricator/blender.git] / src / applications / auth / provider / PhabricatorDisqusAuthProvider.php
blob94b78a8cff146af7bc894ea79731c8909c6d267d
1 <?php
3 final class PhabricatorDisqusAuthProvider
4 extends PhabricatorOAuth2AuthProvider {
6 public function getProviderName() {
7 return pht('Disqus');
10 protected function getProviderConfigurationHelp() {
11 $login_uri = PhabricatorEnv::getURI($this->getLoginURI());
13 return pht(
14 "To configure Disqus OAuth, create a new application here:".
15 "\n\n".
16 "http://disqus.com/api/applications/".
17 "\n\n".
18 "Create an application, then adjust these settings:".
19 "\n\n".
20 " - **Callback URL:** Set this to `%s`".
21 "\n\n".
22 "After creating an application, copy the **Public Key** and ".
23 "**Secret Key** to the fields above (the **Public Key** goes in ".
24 "**OAuth App ID**).",
25 $login_uri);
28 protected function newOAuthAdapter() {
29 return new PhutilDisqusAuthAdapter();
32 protected function getLoginIcon() {
33 return 'Disqus';