- Fixed merges of latest master

This commit is contained in:
Dave Mc Nicoll committed 2025-06-13 19:25:08 +00:00
commit 1c2ce07179
15 files changed
+187 -86

No files matched your search

+8 -6
View File
@@ -2,20 +2,21 @@
use Lean\Factory\HttpFactoryInterface;
use Ulmus\User\{Authorize\HeaderAuthentication,
use Ulmus\User\{
Authorize\HeaderAuthentication,
Entity,
Lib\Authenticate,
Lib\Authorize,
Middleware\AuthenticationMiddleware,
Middleware\HeaderAuthenticationMiddleware,
Middleware\PostRequestAuthenticationMiddleware,
Authorize\PostRequestAuthentication};
use Picea\Picea;
Authorize\PostRequestAuthentication
};
use Storage\{ Cookie, Session };
use Psr\Container\ContainerInterface;
use Picea\Picea;
use function DI\{get, autowire, create};
return [
@@ -38,8 +39,9 @@ return [
'authorize.error' => function(ContainerInterface $c) {
return function(array $errorData) use ($c) {
return $c->get(HttpFactoryInterface::class)::createJsonResponse($errorData + [
'api.error' => "Authorization failed",
'api.datetime' => (new \DateTime)->format(\DateTime::ISO8601),
'api.datetime' => (new \DateTime)->format(\DateTime::ATOM),
], 403);
};
},