- WIP on ulmus-user mechanics updates

This commit is contained in:
Dave Mc Nicoll 2025-06-13 19:14:30 +00:00
parent 7ee4b2d8bb
commit 9031236930
2 changed files with 5 additions and 6 deletions

View File

@ -4,6 +4,7 @@ use Lean\Factory\HttpFactoryInterface;
use Ulmus\User\{Authorize\HeaderAuthentication,
Entity,
Lib\Authenticate,
Lib\Authorize,
Middleware\AuthenticationMiddleware,
@ -12,12 +13,12 @@ use Ulmus\User\{Authorize\HeaderAuthentication,
Authorize\PostRequestAuthentication};
use Picea\Picea;
use Storage\{ Cookie, Session };
use Psr\Container\ContainerInterface;
use function DI\{get, autowire, create};
return [
Authorize::class => create(Authorize::class)->constructor(get(Entity\UserInterface::class), get(Session::class), get(Cookie::class), get('authentication.method')),
@ -47,6 +48,7 @@ return [
'authentication.error' => function($c, Picea $picea) {
return function($message) use ($c, $picea) {
return $c->get(HttpFactoryInterface::class)::createHtmlResponse($picea->renderHtml('lean/error/500', [
'title' => "Authentication failed",
'subtitle' => "",
'message' => $message,

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 40 KiB