Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (25 loc) · 918 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 918 Bytes

ApikeyAuthServiceProvider

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