Path: blob/master/src/applications/auth/provider/PhabricatorTwitterAuthProvider.php
12256 views
<?php12final class PhabricatorTwitterAuthProvider3extends PhabricatorOAuth1AuthProvider {45public function getProviderName() {6return pht('Twitter');7}89protected function getProviderConfigurationHelp() {10$login_uri = PhabricatorEnv::getURI($this->getLoginURI());1112return pht(13"To configure Twitter OAuth, create a new application here:".14"\n\n".15"https://dev.twitter.com/apps".16"\n\n".17"When creating your application, use these settings:".18"\n\n".19" - **Callback URL:** Set this to: `%s`".20"\n\n".21"After completing configuration, copy the **Consumer Key** and ".22"**Consumer Secret** to the fields above.",23$login_uri);24}2526protected function newOAuthAdapter() {27return new PhutilTwitterAuthAdapter();28}2930protected function getLoginIcon() {31return 'Twitter';32}3334}353637