mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 01:32:42 +01:00
ba4b936dff
Summary: Cursory research indicates that "login" is a noun, referring to a form, and "log in" is a verb, referring to the action of logging in. I went though every instances of 'login' I could find and tried to clarify all this language. Also, we have "Phabricator" on the registration for like 4-5 times, which is a bit verbose, so I tried to simplify that language as well. Test Plan: Tested logging in and logging out. Pages feel simpler. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D18322
74 lines
1.9 KiB
PHP
74 lines
1.9 KiB
PHP
<?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 "\xE2\x99\x86";
|
|
}
|
|
|
|
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,
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|