1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/auth/provider/PhabricatorAuthProviderOAuthDisqus.php

37 lines
929 B
PHP
Raw Normal View History

<?php
final class PhabricatorAuthProviderOAuthDisqus
extends PhabricatorAuthProviderOAuth2 {
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 PhutilAuthAdapterOAuthDisqus();
}
protected function getLoginIcon() {
return 'Disqus';
}
}