3 final class PhabricatorTwitchAuthProvider
4 extends PhabricatorOAuth2AuthProvider
{
6 public function getProviderName() {
7 return pht('Twitch.tv');
10 protected function getProviderConfigurationHelp() {
11 $login_uri = PhabricatorEnv
::getURI($this->getLoginURI());
14 "To configure Twitch.tv OAuth, create a new application here:".
16 "http://www.twitch.tv/settings/applications".
18 "When creating your application, use these settings:".
20 " - **Redirect URI:** Set this to: `%s`".
22 "After completing configuration, copy the **Client ID** and ".
23 "**Client Secret** to the fields above. (You may need to generate the ".
24 "client secret by clicking 'New Secret' first.)",
28 protected function newOAuthAdapter() {
29 return new PhutilTwitchAuthAdapter();
32 protected function getLoginIcon() {