keiii/silex-apikey-auth

This package is abandoned and no longer maintained. No replacement package was suggested.

Apikey auth for Silex

dev-master 2018-05-10 10:42 UTC

This package is not auto-updated.

Last update: 2023-03-15 08:51:51 UTC


README

Build Status

By default it accept x-access-token header.

Install

composer require keiii/silex-apikey-auth

Registering

$app->register(new \KEIII\SilexApikeyAuth\ApikeyAuthServiceProvider(), [
    'security.firewalls' => [
        'api' => [
            'pattern' => '^/api',
            'apikey' => true,
            'users' => $app['user_provider'],
            // ...
        ],
    ],
    // ...
]);

Parameters