diff --git a/build/stubs/app_ecosystem_v2.php b/build/stubs/app_api.php similarity index 74% rename from build/stubs/app_ecosystem_v2.php rename to build/stubs/app_api.php index d2b07c9c61628..1ab63499b773c 100644 --- a/build/stubs/app_ecosystem_v2.php +++ b/build/stubs/app_api.php @@ -1,10 +1,10 @@ tryTokenLogin($request)) { @@ -1179,17 +1179,17 @@ protected static function handleAuthHeaders(): void { } } - 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; } diff --git a/psalm.xml b/psalm.xml index 52eb9841aec43..573879adaa80a 100644 --- a/psalm.xml +++ b/psalm.xml @@ -81,7 +81,7 @@ - +