Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / auth / provider / PhabricatorSlackAuthProvider.php
blobf1e607d757a7934a7701d0e43ad6782d05c22e5c
1 <?php
3 final class PhabricatorSlackAuthProvider
4 extends PhabricatorOAuth2AuthProvider {
6 public function getProviderName() {
7 return pht('Slack');
10 protected function getProviderConfigurationHelp() {
11 $login_uri = PhabricatorEnv::getURI($this->getLoginURI());
13 return pht(
14 "To configure Slack OAuth, create a new application here:".
15 "\n\n".
16 "https://api.slack.com/docs/sign-in-with-slack#create_slack_app".
17 "\n\n".
18 "When creating your application, use these settings:".
19 "\n\n".
20 " - **Redirect URI:** Set this to: `%s`".
21 "\n\n".
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.)",
25 $login_uri);
28 protected function newOAuthAdapter() {
29 return new PhutilSlackAuthAdapter();
32 protected function getLoginIcon() {
33 return 'Slack';