jdr/jwt-bundle
Composer 安装命令:
composer require jdr/jwt-bundle
包简介
Helper for lcobucci/jwt
README 文档
README
Helper for lcobucci/jwt.
Instalation
Require the library with composer:
composer require jdr/jwt-bundle
Configuration
Below you can find an example configuration. The default configuration is optional, provided more specific ones are provided. When both the default and specific keys are set, the default keys are discarded for that option.
jdr_jwt: signers: ES256: JDR\JWS\ECDSA\ES256 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. ES384: JDR\JWS\ECDSA\ES384 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. ES512: JDR\JWS\ECDSA\ES512 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. RS256: Lcobucci\JWT\Signer\Rsa\Sha256 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. RS384: Lcobucci\JWT\Signer\Rsa\Sha384 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. RS512: Lcobucci\JWT\Signer\Rsa\Sha512 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. HS256: Lcobucci\JWT\Signer\Hmac\Sha256 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. HS384: Lcobucci\JWT\Signer\Hmac\Sha384 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. HS512: Lcobucci\JWT\Signer\Hmac\Sha512 # [Default] Can be omitted. Provided as an option only to allow signers to be overridden. default: algorithm: ~ # Algorithm to use with default key. private_key: ~ # Path to the default private key. passphrase: ~ # Passphrase for the default private key. public_key: ~ # Path to the default public key. options: issuer: ~ # [Optional] Default issuer. Will be used to set the 'iss' claim. lifetime: ~ # [Optional] Default lifetime in seconds. Will be used to set the 'exp' claim. keys: some_purpose: # This key will be used to identify the created token builders and parsers. algorithm: ~ # Algorithm to use with specific key. private_key: ~ # Path to the specific private key. passphrase: ~ # Passphrase for the specific private key. public_key: ~ # Path to the specific public key. options: issuer: ~ # [Optional] Default issuer. Will be used to set the 'iss' claim. lifetime: ~ # [Optional] Default lifetime in seconds. Will be used to set the 'exp' claim.
License
The MIT License (MIT). Please see License File for more information.
jdr/jwt-bundle 适用场景与选型建议
jdr/jwt-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 03 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 jdr/jwt-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jdr/jwt-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-08