Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1096775
PhabricatorGoogleConfigOptions.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
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
)
->
setBoolOptions
(
array
(
pht
(
"Enable Google Authentication"
),
pht
(
"Disable Google Authentication"
),
))
->
setDescription
(
pht
(
'Allow users to login to Phabricator using Google credentials.'
)),
$this
->
newOption
(
'google.registration-enabled'
,
'bool'
,
true
)
->
setBoolOptions
(
array
(
pht
(
"Enable Google Registration"
),
pht
(
"Disable Google Registration"
),
))
->
setDescription
(
pht
(
'Allow users to create new Phabricator accounts using Google '
.
'credentials.'
)),
$this
->
newOption
(
'google.auth-permanent'
,
'bool'
,
false
)
->
setBoolOptions
(
array
(
pht
(
"Permanently Bind Google Accounts"
),
pht
(
"Allow Google Account Unlinking"
),
))
->
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.'
)),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 30, 11:18 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
273300
Default Alt Text
PhabricatorGoogleConfigOptions.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment