fusionauth/jwt-auth-webtoken-provider
Composer 安装命令:
composer require fusionauth/jwt-auth-webtoken-provider
包简介
This package uses web-token/jwt-framework as a provider for tymon/jwtauth
README 文档
README
This library adds support to web-token/jwt-framework as an alternative to lcobucci/jwt in tymon/jwt-auth, which is probably the most used Laravel package for JWT authentication.
The main goal here is to provide JWKS support instead of using public keys stored locally.
Installation
You can install this library via Composer.
composer require fusionauth/jwt-auth-webtoken-provider
Then, you should add one of PHP JWT Framework's Signature libraries according to the algorithm you want to use:
- HMAC algorithms (
HS256,HS384orHS512):composer require web-token/jwt-signature-algorithm-hmac
- RSASSA-PKCS1 v1_5 algorithms (
RS256,RS384orRS512):composer require web-token/jwt-signature-algorithm-rsa
- ECDSA algorithms (
ES256,ES384orES512):composer require web-token/jwt-signature-algorithm-ecdsa
Usage
This requires composer 2.2 or greater.
Publish this package config file (which overrides the one from tymon/jwt-auth):
php artisan vendor:publish --provider="FusionAuth\JWTAuth\WebTokenProvider\Providers\WebTokenServiceProvider"
Using JWKS
Instead of providing a local public key and use JWKS, edit your .env file to add these lines:
JWT_JWKS_URL=https://your.application.address.to/jwks.json JWT_JWKS_URL_CACHE=86400
Packagist
You can find this on https://packagist.org/packages/fusionauth/jwt-auth-webtoken-provider
This packagist listing is updated using a GitHub webhook.
Release
sb releasesb publish
Questions and support
If you have a question or support issue regarding this client library, we'd love to hear from you.
If you have a paid edition with support included, please open a ticket in your account portal. Learn more about paid editions here.
Otherwise, please post your question in the community forum.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-laravel-jwt-auth-webtoken-provider.
License
This code is available as open source under the terms of the Apache v2.0 License.
fusionauth/jwt-auth-webtoken-provider 适用场景与选型建议
fusionauth/jwt-auth-webtoken-provider 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 29.18k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 06 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Authentication」 「auth」 「laravel」 「jwt」 「JSON Web Token」 「JWK」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fusionauth/jwt-auth-webtoken-provider 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fusionauth/jwt-auth-webtoken-provider 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fusionauth/jwt-auth-webtoken-provider 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel Multiauth package
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
GraphQL authentication for your headless Craft CMS applications.
A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.
Laravel middleware to restrict a site or specific routes using HTTP basic authentication
This package provides a flexible way to add Role-based Permissions to Laravel 6.x
统计信息
- 总下载量: 29.18k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-06-30