Path: blob/master/src/applications/auth/provider/PhabricatorSlackAuthProvider.php
12256 views
<?php12final class PhabricatorSlackAuthProvider3extends PhabricatorOAuth2AuthProvider {45public function getProviderName() {6return pht('Slack');7}89protected function getProviderConfigurationHelp() {10$login_uri = PhabricatorEnv::getURI($this->getLoginURI());1112return pht(13"To configure Slack OAuth, create a new application here:".14"\n\n".15"https://api.slack.com/docs/sign-in-with-slack#create_slack_app".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 PhutilSlackAuthAdapter();29}3031protected function getLoginIcon() {32return 'Slack';33}3435}363738