Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F950048
PhabricatorApplicationAuth.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
PhabricatorApplicationAuth.php
View Options
<?php
final
class
PhabricatorApplicationAuth
extends
PhabricatorApplication
{
public
function
canUninstall
()
{
return
false
;
}
public
function
getBaseURI
()
{
return
'/auth/'
;
}
public
function
getIconName
()
{
return
'authentication'
;
}
public
function
buildMainMenuItems
(
PhabricatorUser
$user
,
PhabricatorController
$controller
=
null
)
{
$items
=
array
();
if
(
$user
->
isLoggedIn
())
{
$item
=
id
(
new
PHUIListItemView
())
->
addClass
(
'core-menu-item'
)
->
setName
(
pht
(
'Log Out'
))
->
setIcon
(
'power'
)
->
setWorkflow
(
true
)
->
setHref
(
'/logout/'
)
->
setSelected
((
$controller
instanceof
PhabricatorLogoutController
));
$items
[]
=
$item
;
}
return
$items
;
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_ADMIN
;
}
public
function
getRoutes
()
{
return
array
(
'/auth/'
=>
array
(
''
=>
'PhabricatorAuthListController'
,
'config/'
=>
array
(
'new/'
=>
'PhabricatorAuthNewController'
,
'new/(?P<className>[^/]+)/'
=>
'PhabricatorAuthEditController'
,
'edit/(?P<id>
\d
+)/'
=>
'PhabricatorAuthEditController'
,
'(?P<action>enable|disable)/(?P<id>
\d
+)/'
=>
'PhabricatorAuthDisableController'
,
),
'login/(?P<pkey>[^/]+)/'
=>
'PhabricatorAuthLoginController'
,
'register/(?:(?P<akey>[^/]+)/)?'
=>
'PhabricatorAuthRegisterController'
,
'start/'
=>
'PhabricatorAuthStartController'
,
'validate/'
=>
'PhabricatorAuthValidateController'
,
'unlink/(?P<pkey>[^/]+)/'
=>
'PhabricatorAuthUnlinkController'
,
'link/(?P<pkey>[^/]+)/'
=>
'PhabricatorAuthLinkController'
,
'confirmlink/(?P<akey>[^/]+)/'
=>
'PhabricatorAuthConfirmLinkController'
,
),
'/oauth/google/login/'
=>
'PhabricatorAuthOldOAuthRedirectController'
,
'/login/'
=>
array
(
''
=>
'PhabricatorAuthStartController'
,
'email/'
=>
'PhabricatorEmailLoginController'
,
'etoken/(?P<token>
\w
+)/'
=>
'PhabricatorEmailTokenController'
,
'refresh/'
=>
'PhabricatorRefreshCSRFController'
,
'mustverify/'
=>
'PhabricatorMustVerifyEmailController'
,
),
'/logout/'
=>
'PhabricatorLogoutController'
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 1:54 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224937
Default Alt Text
PhabricatorApplicationAuth.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment