Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F471353
PhabricatorWordPressAuthProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorWordPressAuthProvider.php
View Options
<?php
final
class
PhabricatorWordPressAuthProvider
extends
PhabricatorOAuth2AuthProvider
{
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 "
.
" server, 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
PhutilWordPressAuthAdapter
();
}
protected
function
getLoginIcon
()
{
return
'WordPressCOM'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 2:08 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
83105
Default Alt Text
PhabricatorWordPressAuthProvider.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment