Path: blob/master/src/applications/auth/provider/PhabricatorDisqusAuthProvider.php
12256 views
<?php12final class PhabricatorDisqusAuthProvider3extends PhabricatorOAuth2AuthProvider {45public function getProviderName() {6return pht('Disqus');7}89protected function getProviderConfigurationHelp() {10$login_uri = PhabricatorEnv::getURI($this->getLoginURI());1112return pht(13"To configure Disqus OAuth, create a new application here:".14"\n\n".15"http://disqus.com/api/applications/".16"\n\n".17"Create an application, then adjust these settings:".18"\n\n".19" - **Callback URL:** Set this to `%s`".20"\n\n".21"After creating an application, copy the **Public Key** and ".22"**Secret Key** to the fields above (the **Public Key** goes in ".23"**OAuth App ID**).",24$login_uri);25}2627protected function newOAuthAdapter() {28return new PhutilDisqusAuthAdapter();29}3031protected function getLoginIcon() {32return 'Disqus';33}3435}363738