diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2023-09-07 07:15:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 07:15:56 +0200 |
commit | 80a4b369f8831980d81da9e2396fe4c6977b6323 (patch) | |
tree | d4850a45da442ac6b5b6503f4c390662df0012f6 /lib | |
parent | c08a8036e5f0a9c5167a0704bedd2beb707702a9 (diff) | |
parent | 01a11641f4b885a19d0cefdc2d9850854b3d47b0 (diff) | |
download | nextcloud-server-80a4b369f8831980d81da9e2396fe4c6977b6323.tar.gz nextcloud-server-80a4b369f8831980d81da9e2396fe4c6977b6323.zip |
Merge pull request #40295 from nextcloud/appecosystem-renaming
Rename AppEcosystemV2 to AppAPI
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/base.php b/lib/base.php index 7153e481eda..d96f91ddcd4 100644 --- a/lib/base.php +++ b/lib/base.php @@ -1138,7 +1138,7 @@ class OC { if (OC_User::handleApacheAuth()) { return true; } - if (self::tryAppEcosystemV2Login($request)) { + if (self::tryAppAPILogin($request)) { return true; } if ($userSession->tryTokenLogin($request)) { @@ -1179,17 +1179,17 @@ class OC { } } - protected static function tryAppEcosystemV2Login(OCP\IRequest $request): bool { + protected static function tryAppAPILogin(OCP\IRequest $request): bool { $appManager = Server::get(OCP\App\IAppManager::class); - if (!$request->getHeader('AE-SIGNATURE')) { + if (!$request->getHeader('AUTHORIZATION-APP-API')) { return false; } - if (!$appManager->isInstalled('app_ecosystem_v2')) { + if (!$appManager->isInstalled('app_api')) { return false; } try { - $appEcosystemV2Service = Server::get(OCA\AppEcosystemV2\Service\AppEcosystemV2Service::class); - return $appEcosystemV2Service->validateExAppRequestToNC($request); + $appAPIService = Server::get(OCA\AppAPI\Service\AppAPIService::class); + return $appAPIService->validateExAppRequestToNC($request); } catch (\Psr\Container\NotFoundExceptionInterface|\Psr\Container\ContainerExceptionInterface $e) { return false; } |