free2er/jwt-authenticator-bundle
Composer 安装命令:
composer require free2er/jwt-authenticator-bundle
包简介
JWT Authenticator Bundle
README 文档
README
JWT Authenticator Bundle
Installation
This component can be installed with the Composer dependency manager.
-
Install the component as a dependency of your project
composer require free2er/jwt-authenticator-bundle -
Enable the bundle
<?php // config/bundles.php return [ // ... Free2er\Jwt\JwtAuthenticatorBundle::class => ['all' => true], // ... ];
- Configure the path to the public key
# config/packages/jwt_authenticator.yaml jwt_authenticator: key: file://%kernel.project_dir%/path/to/public.key
- Configure the firewall
# config/packages/security.yaml security: providers: jwt: id: Free2er\Jwt\Service\UserProvider firewalls: # ... main: pattern: ^/api stateless: true provider: jwt guard: authenticators: - Free2er\Jwt\Service\Authenticator # ...
- Done!
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-02