swarmtech / auth0
Swarmtech Auth0
1.0.4
2019-12-10 17:44 UTC
Requires
- auth0/auth0-php: ^5.6
- zfcampus/zf-mvc-auth: ^1.5
Suggests
- predis/predis: ^1.1, to use redis as a cache for auth0
This package is auto-updated.
Last update: 2024-09-13 02:23:36 UTC
README
一个用于使用JWT认证、API资源和集成到Laminas Api Tools认证过程中的模块。
要求
- PHP 7.2+
- Auth0 PHP 5.6+
- laminas-api-tools/api-tools-mvc-auth 1.5+
安装
- 使用composer进行安装
composer require swarmtech/auth0:"^1.0"
- 通过在config/modules.config.php中添加
Swarmtech\\Auth0
来启用Laminas的模块
return [ "Swarmtech\\Auth0", ];
- 将模板配置复制到您的config autoload文件夹,并根据需要进行修改
cp ./vendor/swarmtech/auth0/config/auth0.config.php.dist ./config/autoload/auth0.config.php
功能
- 使用ID Token(JWT)在授权头中对auth0进行认证,以验证auth0用户请求。
- 使用客户端凭证认证流程对当前应用程序进行认证,以对auth0进行认证。
- 访问auth0资源,如用户、角色、客户端、电子邮件、租户、统计信息等。
- 在JWT验证期间使用Redis作为缓存的处理器
- 适配器用于使用Auth0与Laminas认证和api-tools-mvc-auth
- 在api-tools-mvc-auth中集成,使用Auth0作为Laminas Api Tools应用程序的认证系统
问题报告
如果您发现了一个错误或有功能请求,请在该存储库的问题部分进行报告。
作者
许可证
该项目采用MIT许可证。有关更多信息,请参阅LICENSE文件。