Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 2.12 KB

4.Authorization.md

File metadata and controls

24 lines (16 loc) · 2.12 KB

Authorization

ZfcAdmin allows authorization via BjyAuthorize or ZfcRbac. Configuration for both modules is provided to easily configure ZfcAdmin. Authorization enables you to restrict access to /admin and every other page under ZfcAdmin.

BjyAuthorize authorization

BjyAuthorize works with Zend\Permission\Acl as access restriction component. The BjyAuthorize module combines Zend\Permission\Acl with the standard user module ZfcUser. To enable access restriction with BjyAuthorize, install the module and enable it in your application.config.php.

Furthermore, ZfcAdmin has a zfcadmin.global.php file in the config directory. Copy this file over to your config/autoload directory. It directly provides BjyAuthorize configuration to restrict access to users for the /admin route. Only users in the "admin" group are allowed to access ZfcAdmin's pages.

Instructions for further configuration of BjyAuthorize are provided in the repository of BjyAuthorize.

ZfcRbac authorization

ZfcRbac works with Zend\Permission\Rbac as access restriction component. The ZfcRbac module combines Zend\Permission\Rbac with the standard user module ZfcUser. To enable access restriction with ZfcRbac, install the module and enable it in your application.config.php.

Furthermore, ZfcAdmin has a zfcadmin.global.php file in the config directory. Copy this file over to your config/autoload directory. It directly provides ZfcRbac configuration to restrict access to users for the /admin route. Only users in the "admin" group are allowed to access ZfcAdmin's pages.

Instructions for further configuration of ZfcRbac are provided in the repository of ZfcRbac.

Link to documentation pages

  1. Introduction
  2. Routes
  3. Navigation
  4. Authorization
  5. Views & Layout