Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / auth / provider / PhabricatorTwitterAuthProvider.php
blob56675de3170a485fe2b1ac12d394a70a65c4cb72
1 <?php
3 final class PhabricatorTwitterAuthProvider
4 extends PhabricatorOAuth1AuthProvider {
6 public function getProviderName() {
7 return pht('Twitter');
10 protected function getProviderConfigurationHelp() {
11 $login_uri = PhabricatorEnv::getURI($this->getLoginURI());
13 return pht(
14 "To configure Twitter OAuth, create a new application here:".
15 "\n\n".
16 "https://dev.twitter.com/apps".
17 "\n\n".
18 "When creating your application, use these settings:".
19 "\n\n".
20 " - **Callback URL:** Set this to: `%s`".
21 "\n\n".
22 "After completing configuration, copy the **Consumer Key** and ".
23 "**Consumer Secret** to the fields above.",
24 $login_uri);
27 protected function newOAuthAdapter() {
28 return new PhutilTwitterAuthAdapter();
31 protected function getLoginIcon() {
32 return 'Twitter';