[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
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 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |