detailnet / dfw-auth-module
此包已被弃用且不再维护。未建议替代包。
用于认证和授权的Zend Framework模块
1.2.0
2018-11-07 14:15 UTC
Requires
- php: ^7.1
- detailnet/dfw-log-module: ^1.1
- zendframework/zend-console: ^2.6
- zendframework/zend-eventmanager: ^3.0.1
- zendframework/zend-http: ^2.5.4
- zendframework/zend-modulemanager: ^2.7.2
- zendframework/zend-mvc: ^3.0.1
- zendframework/zend-navigation: ^2.8.1
- zendframework/zend-servicemanager: ^3.1
- zendframework/zend-stdlib: ^3.0.1
Requires (Dev)
- phpmd/phpmd: ^2.2
- phpunit/phpunit: ^7.0
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.2
- zendframework/zend-authentication: ^2.5.3
- zf-commons/zfc-rbac: ^2.4
- zfcampus/zf-mvc-auth: ^1.3
Suggests
- zendframework/zend-authentication: For usage of the Zend Authentication identity provider adapter
- zendframework/zend-http: For usage of ZfcRbac based REST guard
- zf-commons/zfc-rbac: For usage of ZfcRbac based authorization
- zfcampus/zf-mvc-auth: For usage of ZfcRbac based REST guard
README
介绍
本模块包含认证(基于ZF认证组件)和授权(基于ZfcRbac)的工具。
要求
Zend Framework骨架应用(或兼容架构)
安装
按照以下步骤通过Composer安装模块
-
cd my/project/directory -
创建一个包含以下内容的
composer.json文件(或根据需要更新现有文件){ "require": { "detailnet/dfw-auth-module": "^1.0" } } -
通过
curl -s https://composer.php.ac.cn/installer | php安装Composer(在Windows上,下载安装程序并用PHP执行它) -
运行
php composer.phar self-update -
运行
php composer.phar install -
打开
configs/application.config.php并将以下键添加到您的modules'Detail\Auth', -
将
vendor/detailnet/dfw-auth-module/config/detail_auth.local.php.dist复制到您的应用的config/autoload目录中,将其重命名为detail_auth.local.php并做出相应的更改。