toyokumo/jwt-bundle
Composer 安装命令:
composer require toyokumo/jwt-bundle
包简介
Symfony support for generating and interpreting JWT token.
README 文档
README
Generating and Interpreting JWT token.
Usage
JWTService
- Set JWK information via .yml file.
# key_info.yml
parameters:
jwt_keys:
# for HS256
key_name_for_HS256_key:
kid: current_kid
alg: HS256
secret: 'secret string with more than 32 chars.'
# for RS256 or ES256
key_name_for_RS256_or_ES256_key:
kid: current_kid
alg: RS256 or ES256
filename: 'public or private key filename'
passphrase: 'passphrase to decode key'
-
Place .yml and key files in the same directory.
-
Set arguments
# jwt.yml
services:
Toyokumo\JWTBundle\JWTService:
arguments:
$keyDirPath: 'path/to/key_info.yml and key files'
$jwkInfos: '%jwt_keys%' # JWK information defined in key_info.yml
统计信息
- 总下载量: 31.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-12