detailnet / dfw-auth-module
Zend Framework Module for authentication and authorization
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
Introduction
This module contains tools for authentication (based on the Authentication component for ZF) and authorization (based on ZfcRbac).
Requirements
Zend Framework Skeleton Application (or compatible architecture)
Installation
Install the module through Composer using the following steps:
-
cd my/project/directory
-
Create a
composer.json
file with following contents (or update your existing file accordingly):{ "require": { "detailnet/dfw-auth-module": "^1.0" } }
-
Install Composer via
curl -s http://getcomposer.org/installer | php
(on Windows, download the installer and execute it with PHP) -
Run
php composer.phar self-update
-
Run
php composer.phar install
-
Open
configs/application.config.php
and add following key to yourmodules
:'Detail\Auth',
-
Copy
vendor/detailnet/dfw-auth-module/config/detail_auth.local.php.dist
into your application'sconfig/autoload
directory, rename it todetail_auth.local.php
and make the appropriate changes.