From 93a128db41d24b47a3e8c451553c438009375a6f Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 29 Jul 2024 20:00:13 +0000 Subject: [PATCH] Upgrade to latest version of fastybird/simple-auth (#275) --- composer.json | 2 +- src/Router/ApiRoutes.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 0bcc186..3e1cc57 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ "fastybird/exchange-library": "dev-main", "fastybird/json-api": "^0.17", "fastybird/metadata-library": "dev-main", - "fastybird/simple-auth": "^0.13", + "fastybird/simple-auth": "^0.14", "ipub/doctrine-phone": "^1.6", "ipub/doctrine-timestampable": "^2.0", "ipub/slim-router": "^0.2", diff --git a/src/Router/ApiRoutes.php b/src/Router/ApiRoutes.php index fa37e86..6212410 100644 --- a/src/Router/ApiRoutes.php +++ b/src/Router/ApiRoutes.php @@ -47,7 +47,7 @@ public function __construct( private readonly Controllers\ConditionsV1 $conditionsV1Controller, private readonly Controllers\TriggerControlsV1 $controlsV1Controller, private readonly Middleware\Access $triggersAccessControlMiddleware, - private readonly SimpleAuthMiddleware\Access $accessControlMiddleware, + private readonly SimpleAuthMiddleware\Authorization $authorizationMiddleware, private readonly SimpleAuthMiddleware\User $userMiddleware, ) { @@ -70,7 +70,7 @@ public function registerRoutes(Routing\IRouter $router): void } }); - $routes->addMiddleware($this->accessControlMiddleware); + $routes->addMiddleware($this->authorizationMiddleware); $routes->addMiddleware($this->userMiddleware); $routes->addMiddleware($this->triggersAccessControlMiddleware); }