Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113001519
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
Wed, May 14, 07:52
Size
1 KB
Mime Type
text/x-php
Expires
Fri, May 16, 07:52 (2 d)
Engine
blob
Format
Raw Data
Handle
26164652
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
)
->
setOptions
(
array
(
pht
(
"Disable GitHub Authentication"
),
pht
(
"Enable GitHub Authentication"
),
))
->
setDescription
(
pht
(
'Allow users to login to Phabricator using GitHub credentials.'
)),
$this
->
newOption
(
'github.registration-enabled'
,
'bool'
,
true
)
->
setOptions
(
array
(
pht
(
"Disable GitHub Registration"
),
pht
(
"Enable GitHub Registration"
),
))
->
setDescription
(
pht
(
'Allow users to create new Phabricator accounts using GitHub '
.
'credentials.'
)),
$this
->
newOption
(
'github.auth-permanent'
,
'bool'
,
false
)
->
setOptions
(
array
(
pht
(
"Allow GitHub Account Unlinking"
),
pht
(
"Permanently Bind GitHub Accounts"
),
))
->
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
)
->
setDescription
(
pht
(
'GitHub "Secret" to use for GitHub API access.'
)),
);
}
}
Event Timeline
Log In to Comment