Download the PHP package linkorb/silex-provider-jwt-auth without Composer
On this page you can find all versions of the php package linkorb/silex-provider-jwt-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download linkorb/silex-provider-jwt-auth
More information about linkorb/silex-provider-jwt-auth
Files in linkorb/silex-provider-jwt-auth
Download linkorb/silex-provider-jwt-auth
More information about linkorb/silex-provider-jwt-auth
Files in linkorb/silex-provider-jwt-auth
Vendor linkorb
Package silex-provider-jwt-auth
Short Description Provides a jwt_issuer firewall and JWT decoder.
License MIT
Package silex-provider-jwt-auth
Short Description Provides a jwt_issuer firewall and JWT decoder.
License MIT
Please rate this library. Is it a good library?
Informations about the package silex-provider-jwt-auth
linkorb/silex-provider-jwt-auth
Provides a firewall which uses, as its authentication provider, an issuer of Json Web Tokens.
Install
Install using composer:-
$ composer require linkorb/silex-provider-jwt-auth
Note: use the v1 branch when you're restricted to using version 2.7.x of symfony/security.
Then configure and register the provider along with the Silex Session and Security providers:-
// app/app.php
use LinkORB\JwtAuth\Provider\JwtAuthenticatorServiceProvider;
use Silex\Provider\SecurityServiceProvider;
use Silex\Provider\SessionServiceProvider;
...
$app->register(new SessionServiceProvider);
$app->register(
new SecurityServiceProvider,
[
'security.firewalls' => [
'my_firewall' => [
'pattern' => '^/secure-area',
'stateless' => false,
'jwt_issuer' => [
'app_identifier' => 'my-app-name',
'jwt_issuer_url' => 'https://example.com/issue/a/jwt',
// see JwtAuthenticatorServiceProvider for more options
],
'users' => function () use ($app) {
return $app['my_user_provider'];
},
],
],
]
);
$app->register(
new JwtAuthenticatorServiceProvider,
[
'jwt_auth.decoder.config' => [
'decoder_key' => function () {
return file_get_contents('/path/to/jwt/decoder/key.pub');
},
'permitted_algos' => ['RS256', 'RS384', 'RS512'],
],
]
);
All versions of silex-provider-jwt-auth with dependencies
PHP Build Version
Package Version
Requires
firebase/php-jwt Version
^5.0
pimple/pimple Version ^3.0
silex/silex Version ^2.0
symfony/security Version ^2.8 || ^3.0 || ^4.0
pimple/pimple Version ^3.0
silex/silex Version ^2.0
symfony/security Version ^2.8 || ^3.0 || ^4.0
The package linkorb/silex-provider-jwt-auth contains the following files
Loading the files please wait ....