Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/auth/provider/PhabricatorDisqusAuthProvider.php
12256 views
1
<?php
2
3
final class PhabricatorDisqusAuthProvider
4
extends PhabricatorOAuth2AuthProvider {
5
6
public function getProviderName() {
7
return pht('Disqus');
8
}
9
10
protected function getProviderConfigurationHelp() {
11
$login_uri = PhabricatorEnv::getURI($this->getLoginURI());
12
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);
26
}
27
28
protected function newOAuthAdapter() {
29
return new PhutilDisqusAuthAdapter();
30
}
31
32
protected function getLoginIcon() {
33
return 'Disqus';
34
}
35
36
}
37
38