Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101247215
PhabricatorGitHubConfigOptions.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
Fri, Feb 7, 04:10
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Feb 9, 04:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24122904
Attached To
rPH Phabricator
PhabricatorGitHubConfigOptions.php
View Options
<?php
final
class
PhabricatorGitHubConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
"Integration with GitHub"
);
}
public
function
getDescription
()
{
return
pht
(
"GitHub authentication and integration options."
);
}
public
function
getOptions
()
{
return
array
(
$this
->
newOption
(
'github.auth-enabled'
,
'bool'
,
false
)
->
setBoolOptions
(
array
(
pht
(
"Enable GitHub Authentication"
),
pht
(
"Disable GitHub Authentication"
),
))
->
setDescription
(
pht
(
'Allow users to login to Phabricator using GitHub credentials.'
)),
$this
->
newOption
(
'github.registration-enabled'
,
'bool'
,
true
)
->
setBoolOptions
(
array
(
pht
(
"Enable GitHub Registration"
),
pht
(
"Disable GitHub Registration"
),
))
->
setDescription
(
pht
(
'Allow users to create new Phabricator accounts using GitHub '
.
'credentials.'
)),
$this
->
newOption
(
'github.auth-permanent'
,
'bool'
,
false
)
->
setBoolOptions
(
array
(
pht
(
"Permanently Bind GitHub Accounts"
),
pht
(
"Allow GitHub Account Unlinking"
),
))
->
setDescription
(
pht
(
'Are Phabricator accounts permanently bound to GitHub '
.
'accounts?'
)),
$this
->
newOption
(
'github.application-id'
,
'string'
,
null
)
->
setDescription
(
pht
(
'GitHub "Client ID" to use for GitHub API access.'
)),
$this
->
newOption
(
'github.application-secret'
,
'string'
,
null
)
->
setMasked
(
true
)
->
setDescription
(
pht
(
'GitHub "Secret" to use for GitHub API access.'
)),
);
}
}
Event Timeline
Log In to Comment