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