Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112361508
PhabricatorAuthProviderOAuthWordPress.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 10, 05:47
Size
1 KB
Mime Type
text/x-php
Expires
Mon, May 12, 05:47 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
26077549
Attached To
rPH Phabricator
PhabricatorAuthProviderOAuthWordPress.php
View Options
<?php
final
class
PhabricatorAuthProviderOAuthWordPress
extends
PhabricatorAuthProviderOAuth2
{
public
function
getProviderName
()
{
return
pht
(
'WordPress.com'
);
}
protected
function
getProviderConfigurationHelp
()
{
$uri
=
PhabricatorEnv
::
getProductionURI
(
'/'
);
$callback_uri
=
PhabricatorEnv
::
getURI
(
$this
->
getLoginURI
());
return
pht
(
"To configure WordPress.com OAuth, create a new WordPress.com "
.
"Application here:
\n\n
"
.
"https://developer.wordpress.com/apps/new/."
.
"
\n\n
"
.
"You should use these settings in your application:"
.
"
\n\n
"
.
" - **URL:** Set this to your full domain with protocol. For this "
.
" Phabricator install, the correct value is: `%s`
\n
"
.
" - **Redirect URL**: Set this to: `%s`
\n
"
.
"
\n\n
"
.
"Once you've created an application, copy the **Client ID** and "
.
"**Client Secret** into the fields above."
,
$uri
,
$callback_uri
);
}
protected
function
newOAuthAdapter
()
{
return
new
PhutilAuthAdapterOAuthWordPress
();
}
protected
function
getLoginIcon
()
{
return
'WordPressCOM'
;
}
}
Event Timeline
Log In to Comment