evaneos/silex-jwt-provider
最新稳定版本:v3.1.0
Composer 安装命令:
composer require evaneos/silex-jwt-provider
包简介
Silex JWT Provider
README 文档
README
Silex provider for JWT.
⚠️ Deprecation notice
Silex has reached its end of life in June 2018 [ref].
We will only maintain this package for internal use only. Contributions are no longer accepted.
You are encouraged to use Symfony 4+ and alternatives like lexik/LexikJWTAuthenticationBundle or a custom authenticator.
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());
统计信息
- 总下载量: 15.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-06-15