Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93585361
PhabricatorApplicationOAuthServer.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:57
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 22:57 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22667941
Attached To
rPH Phabricator
PhabricatorApplicationOAuthServer.php
View Options
<?php
final
class
PhabricatorApplicationOAuthServer
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/oauthserver/'
;
}
public
function
getShortDescription
()
{
return
pht
(
'OAuth Login Provider'
);
}
public
function
getIconName
()
{
return
'oauthserver'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
99
\x
86"
;
}
public
function
getFlavorText
()
{
return
pht
(
'Login with Phabricator'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_ADMIN
;
}
public
function
isBeta
()
{
return
true
;
}
public
function
getHelpURI
()
{
return
PhabricatorEnv
::
getDoclink
(
'Using the Phabricator OAuth Server'
);
}
public
function
getRoutes
()
{
return
array
(
'/oauthserver/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorOAuthClientListController'
,
'auth/'
=>
'PhabricatorOAuthServerAuthController'
,
'test/(?P<id>
\d
+)/'
=>
'PhabricatorOAuthServerTestController'
,
'token/'
=>
'PhabricatorOAuthServerTokenController'
,
'client/'
=>
array
(
'create/'
=>
'PhabricatorOAuthClientEditController'
,
'delete/(?P<phid>[^/]+)/'
=>
'PhabricatorOAuthClientDeleteController'
,
'edit/(?P<phid>[^/]+)/'
=>
'PhabricatorOAuthClientEditController'
,
'view/(?P<phid>[^/]+)/'
=>
'PhabricatorOAuthClientViewController'
,
),
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorOAuthServerCapabilityCreateClients
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
);
}
}
Event Timeline
Log In to Comment