Path: blob/master/src/applications/auth/provider/PhabricatorTwitchAuthProvider.php
12256 views
<?php12final class PhabricatorTwitchAuthProvider3extends PhabricatorOAuth2AuthProvider {45public function getProviderName() {6return pht('Twitch.tv');7}89protected function getProviderConfigurationHelp() {10$login_uri = PhabricatorEnv::getURI($this->getLoginURI());1112return pht(13"To configure Twitch.tv OAuth, create a new application here:".14"\n\n".15"http://www.twitch.tv/settings/applications".16"\n\n".17"When creating your application, use these settings:".18"\n\n".19" - **Redirect URI:** Set this to: `%s`".20"\n\n".21"After completing configuration, copy the **Client ID** and ".22"**Client Secret** to the fields above. (You may need to generate the ".23"client secret by clicking 'New Secret' first.)",24$login_uri);25}2627protected function newOAuthAdapter() {28return new PhutilTwitchAuthAdapter();29}3031protected function getLoginIcon() {32return 'TwitchTV';33}3435}363738