Installation
Required dependencies
TinyAuth wraps CakePHP's official Authentication and Authorization plugins. Before using TinyAuth features, you must install and configure the official plugins:
| Feature | Required Plugin | Setup Guide |
|---|---|---|
| Authentication (login/logout) | cakephp/authentication | /authentication/ + Authentication 4 / Authentication 3 |
| Authorization (roles / ACL) | cakephp/authorization | /authorization/ + Official Docs |
bash
# For authentication features
composer require cakephp/authentication
# For authorization features
composer require cakephp/authorizationStandalone exception: the AuthUser component and helper work without the official plugins: they integrate with any authentication solution that sets an identity in the request.
Install TinyAuth
bash
composer require dereuromark/cakephp-tinyauth
bin/cake plugin load TinyAuthNext steps
Pick the topic you actually need:
- Getting started: configure the INI files after the underlying services are working.
- Authentication: full setup of the Authentication component + INI whitelist.
- Authorization: full setup of the Authorization component + role-based ACL.
- AuthPanel: DebugKit panel for inspecting auth decisions.