mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-11 17:32:41 +01:00
1834584e98
Summary: Ref T1536. - Move all the provider-specific help into contextual help in Auth. - This provides help much more contextually, and we can just tell the user the right values to use to configure things. - Rewrite account/registration help to reflect the newer state of the word. - Also clean up a few other loose ends. Test Plan: {F46937} Reviewers: chad, btrahan Reviewed By: chad CC: aran Maniphest Tasks: T1536 Differential Revision: https://secure.phabricator.com/D6247
36 lines
893 B
PHP
36 lines
893 B
PHP
<?php
|
|
|
|
final class PhabricatorAuthProviderOAuthDisqus
|
|
extends PhabricatorAuthProviderOAuth {
|
|
|
|
public function getProviderName() {
|
|
return pht('Disqus');
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
protected function newOAuthAdapter() {
|
|
return new PhutilAuthAdapterOAuthDisqus();
|
|
}
|
|
|
|
protected function getLoginIcon() {
|
|
return 'Disqus';
|
|
}
|
|
|
|
}
|