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

KEIII/ApikeyAuthServiceProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published