radebatz / silex-jwt-provider
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (3.0.2) of this package.
Silex JWT Provider
3.0.2
2017-11-02 03:45 UTC
Requires
- php: >=5.5
- evaneos/jwt: ^0.5.0
- pimple/pimple: ^3.0
- symfony/security: ^2.7||^3.0
Requires (Dev)
- phpspec/phpspec: ~2.0
- phpunit/phpunit: ^4.8
- silex/silex: ^2.0
- symfony/browser-kit: ^3.1
This package is auto-updated.
Last update: 2023-12-27 13:15:52 UTC
README
Silex provider for JWT
Usage
<?php use Evaneos\JWT\Silex\Provider\SecurityJWTServiceProvider; use Silex\Provider\SecurityServiceProvider; $app->register(new SecurityServiceProvider(), [ 'security.firewalls' => [ 'all' => [ 'stateless' => true, 'pattern' => '^.*$', 'jwt' => [ 'secret_key' => 'secret', 'allowed_algorithms' => ['HS256'], 'retrieval_strategy' => 'chain', ], ], ], ]); $app->register(new SecurityJWTServiceProvider());