2017 © Pedro Peláez
 

cakephp-plugin cakephp-authorize

CakePHP plugin including a new authorize class for the Acl component.

image

locality/cakephp-authorize

CakePHP plugin including a new authorize class for the Acl component.

  • Monday, November 24, 2014
  • by locality
  • Repository
  • 8 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CakePHP Authorize

This plugin contains a new authorize class for use with the Acl component., (*1)

When the ActionsAuthorize maps requests to ACO nodes, it only allows for a maximum length of /:plugin/:controller/:action. The PathAuthorize class included with this plugin will allow you to use ACO nodes that include the record ID. So the path can now look like /:plugin/:controller/:action/:id. Allowing you to use the ACL to restrict access to individual records., (*2)

Requirements

  • PHP 5.2.8
  • CakePHP 2.x

Installation

[Git], (*3)

In your CakePHP plugin directory, run the following command:, (*4)

    git clone https://github.com/localitysolutions/cakephp-authorize.git Authorize

[Composer], (*5)

Add to require in your composer.json file:, (*6)

    {
        "require": {
            "locality/cakephp-authorize": "dev-master"
        }
    }

[Manual], (*7)

  1. Download the zipfile from here: https://github.com/localitysolutions/cakephp-authorize/zipball/master
  2. Unzip the entire contents.
  3. Rename the resulting folder to Authorize.
  4. Finally, copy it to the app/Plugin directory.

Usage

Standard CakePHP plugin installation, in app/Config/bootstrap.php insert the line: CakePlugin::load('Authorize');, (*8)

To use the PathAuthorize class for authorization:, (*9)

    //in $components
    public $components = array(
        'Auth' => array(
            'authorize' => array(
                'Authorize.Path' => array('actionPath' => 'controllers')
            )
        )
    );
    //Or in beforeFilter()
    $this->Auth->authorize = array(
        'Authorize.Path' => array('actionPath' => 'controllers')
    );

The Versions

24/11 2014

dev-master

9999999-dev http://github.com/localitysolutions/cakephp-authorize

CakePHP plugin including a new authorize class for the Acl component.

  Sources   Download

MIT

The Requires

 

plugin acl cakephp auth authorize