Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93581278
PhabricatorOAuthServerApplication.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, Nov 29, 22:06
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 22:06 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22669827
Attached To
rPH Phabricator
PhabricatorOAuthServerApplication.php
View Options
<?php
final
class
PhabricatorOAuthServerApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'OAuth Server'
);
}
public
function
getBaseURI
()
{
return
'/oauthserver/'
;
}
public
function
getShortDescription
()
{
return
pht
(
'OAuth Login Provider'
);
}
public
function
getIcon
()
{
return
'fa-hotel'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
99
\x
86"
;
}
public
function
getFlavorText
()
{
return
pht
(
'Log In with Phabricator'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_ADMIN
;
}
public
function
isPrototype
()
{
return
true
;
}
public
function
getHelpDocumentationArticles
(
PhabricatorUser
$viewer
)
{
return
array
(
array
(
'name'
=>
pht
(
'Using the Phabricator OAuth Server'
),
'href'
=>
PhabricatorEnv
::
getDoclink
(
'Using the Phabricator OAuth Server'
),
),
);
}
public
function
getRoutes
()
{
return
array
(
'/oauthserver/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorOAuthClientListController'
,
'auth/'
=>
'PhabricatorOAuthServerAuthController'
,
'token/'
=>
'PhabricatorOAuthServerTokenController'
,
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'PhabricatorOAuthClientEditController'
,
'client/'
=>
array
(
'disable/(?P<id>
\d
+)/'
=>
'PhabricatorOAuthClientDisableController'
,
'view/(?P<id>
\d
+)/'
=>
'PhabricatorOAuthClientViewController'
,
'secret/(?P<id>
\d
+)/'
=>
'PhabricatorOAuthClientSecretController'
,
'test/(?P<id>
\d
+)/'
=>
'PhabricatorOAuthClientTestController'
,
),
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorOAuthServerCreateClientsCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
);
}
}
Event Timeline
Log In to Comment