Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100722877
PhabricatorApplicationAuth.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 2, 05:10
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Feb 4, 05:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24020973
Attached To
rPH Phabricator
PhabricatorApplicationAuth.php
View Options
<?php
final
class
PhabricatorApplicationAuth
extends
PhabricatorApplication
{
public
function
shouldAppearInLaunchView
()
{
return
false
;
}
public
function
canUninstall
()
{
return
false
;
}
public
function
getBaseURI
()
{
return
'/auth/'
;
}
public
function
buildMainMenuItems
(
PhabricatorUser
$user
,
PhabricatorController
$controller
=
null
)
{
$items
=
array
();
if
(
$user
->
isLoggedIn
())
{
$item
=
new
PHUIListItemView
();
$item
->
setName
(
pht
(
'Log Out'
));
$item
->
setIcon
(
'power'
);
$item
->
setWorkflow
(
true
);
$item
->
setHref
(
'/logout/'
);
$item
->
setSelected
((
$controller
instanceof
PhabricatorLogoutController
));
$items
[]
=
$item
;
}
return
$items
;
}
public
function
getRoutes
()
{
return
array
(
'/auth/'
=>
array
(
'login/(?P<pkey>[^/]+)/'
=>
'PhabricatorAuthLoginController'
,
'register/(?:(?P<akey>[^/]+)/)?'
=>
'PhabricatorAuthRegisterController'
,
'start/'
=>
'PhabricatorAuthStartController'
,
'validate/'
=>
'PhabricatorAuthValidateController'
,
'unlink/(?P<pkey>[^/]+)/'
=>
'PhabricatorAuthUnlinkController'
,
'link/(?P<pkey>[^/]+)/'
=>
'PhabricatorAuthLinkController'
,
'confirmlink/(?P<akey>[^/]+)/'
=>
'PhabricatorAuthConfirmLinkController'
,
),
'/login/'
=>
array
(
''
=>
'PhabricatorLoginController'
,
'email/'
=>
'PhabricatorEmailLoginController'
,
'etoken/(?P<token>
\w
+)/'
=>
'PhabricatorEmailTokenController'
,
'refresh/'
=>
'PhabricatorRefreshCSRFController'
,
'mustverify/'
=>
'PhabricatorMustVerifyEmailController'
,
),
'/logout/'
=>
'PhabricatorLogoutController'
,
'/oauth/'
=>
array
(
'(?P<provider>
\w
+)/'
=>
array
(
'login/'
=>
'PhabricatorOAuthLoginController'
,
'diagnose/'
=>
'PhabricatorOAuthDiagnosticsController'
,
),
),
'/ldap/'
=>
array
(
'login/'
=>
'PhabricatorLDAPLoginController'
,
),
);
}
}
Event Timeline
Log In to Comment