Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorGitHubAuthProvider.php
Show All 13 Lines | protected function getProviderConfigurationHelp() { | ||||
return pht( | return pht( | ||||
"To configure GitHub OAuth, create a new GitHub Application here:". | "To configure GitHub OAuth, create a new GitHub Application here:". | ||||
"\n\n". | "\n\n". | ||||
"https://github.com/settings/applications/new". | "https://github.com/settings/applications/new". | ||||
"\n\n". | "\n\n". | ||||
"You should use these settings in your application:". | "You should use these settings in your application:". | ||||
"\n\n". | "\n\n". | ||||
" - **URL:** Set this to your full domain with protocol. For this ". | " - **URL:** Set this to your full domain with protocol. For this ". | ||||
" Phabricator install, the correct value is: `%s`\n". | " installation, the correct value is: `%s`\n". | ||||
epriestley: Maybe just "for this installation" | |||||
" - **Callback URL**: Set this to: `%s`\n". | " - **Callback URL**: Set this to: `%s`\n". | ||||
"\n\n". | "\n\n". | ||||
"Once you've created an application, copy the **Client ID** and ". | "Once you've created an application, copy the **Client ID** and ". | ||||
"**Client Secret** into the fields above.", | "**Client Secret** into the fields above.", | ||||
$uri, | $uri, | ||||
$callback_uri); | $callback_uri); | ||||
} | } | ||||
protected function newOAuthAdapter() { | protected function newOAuthAdapter() { | ||||
return new PhutilGitHubAuthAdapter(); | return new PhutilGitHubAuthAdapter(); | ||||
} | } | ||||
protected function getLoginIcon() { | protected function getLoginIcon() { | ||||
return 'Github'; | return 'GitHub'; | ||||
} | } | ||||
public function getLoginURI() { | public function getLoginURI() { | ||||
// TODO: Clean this up. See PhabricatorAuthOldOAuthRedirectController. | // TODO: Clean this up. See PhabricatorAuthOldOAuthRedirectController. | ||||
return '/oauth/github/login/'; | return '/oauth/github/login/'; | ||||
} | } | ||||
} | } |
Maybe just "for this installation"