/cakephp-tinyauth

CakePHP TinyAuth plugin for an easy and fast user authorization. Single or multi role. DB or code based.

Primary LanguagePHPMIT LicenseMIT

CakePHP TinyAuth Plugin

Build Status Latest Stable Version Coverage Status Minimum PHP Version License Total Downloads Coding Standards

A CakePHP 3.x plugin to handle authentication and user authorization the easy way.

Demo

See http://sandbox3.dereuromark.de/auth-sandbox

auth-allow.ini

Users = index,view
PluginName.SomeController = *

acl.ini

[Users]
index = *
add,edit = user,mod

[admin/Users]
* = admin

How to include

Installing the plugin is pretty much as with every other CakePHP plugin:

composer require dereuromark/cakephp-tinyauth

Then, to load the plugin either run the following command:

bin/cake plugin load TinyAuth

or manually add the following line to your app's config/bootstrap.php file:

Plugin::load('TinyAuth');

That's it. It should be up and running.

Docs

For setup and usage see Docs.

Also note the original blog post and how it all started.

Branching strategy

The master branch is the currently active and maintained one and works with the current 3.x stable version. Please see the original Tools plugin if you need TinyAuth for CakePHP 2.x versions.