Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorWordPressAuthProvider.php
Show All 13 Lines | protected function getProviderConfigurationHelp() { | ||||
return pht( | return pht( | ||||
"To configure WordPress.com OAuth, create a new WordPress.com ". | "To configure WordPress.com OAuth, create a new WordPress.com ". | ||||
"Application here:\n\n". | "Application here:\n\n". | ||||
"https://developer.wordpress.com/apps/new/.". | "https://developer.wordpress.com/apps/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". | " server, the correct value is: `%s`\n". | ||||
" - **Redirect URL**: Set this to: `%s`\n". | " - **Redirect 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 PhutilWordPressAuthAdapter(); | return new PhutilWordPressAuthAdapter(); | ||||
} | } | ||||
protected function getLoginIcon() { | protected function getLoginIcon() { | ||||
return 'WordPressCOM'; | return 'WordPressCOM'; | ||||
} | } | ||||
} | } |