2018-05-01 11:35:12 -05:00
|
|
|
<?php
|
2019-10-05 10:26:10 -05:00
|
|
|
|
2018-05-01 11:35:12 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink\Rest;
|
|
|
|
|
2020-01-01 14:11:53 -06:00
|
|
|
use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
2018-09-28 15:08:01 -05:00
|
|
|
|
2018-05-01 11:35:12 -05:00
|
|
|
return [
|
|
|
|
|
|
|
|
'auth' => [
|
|
|
|
'routes_whitelist' => [
|
2018-12-23 03:18:38 -06:00
|
|
|
Action\HealthAction::class,
|
2018-09-20 12:55:24 -05:00
|
|
|
Action\ShortUrl\SingleStepCreateShortUrlAction::class,
|
2020-01-06 16:32:43 -06:00
|
|
|
ConfigProvider::UNVERSIONED_HEALTH_ENDPOINT_NAME,
|
2018-05-01 11:35:12 -05:00
|
|
|
],
|
2018-09-28 15:08:01 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
'dependencies' => [
|
|
|
|
'factories' => [
|
|
|
|
Middleware\AuthenticationMiddleware::class => ConfigAbstractFactory::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
ConfigAbstractFactory::class => [
|
2020-11-07 05:53:14 -06:00
|
|
|
Middleware\AuthenticationMiddleware::class => [Service\ApiKeyService::class, 'config.auth.routes_whitelist'],
|
2018-05-01 11:35:12 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|