-
Notifications
You must be signed in to change notification settings - Fork 43
Home
Mark S. edited this page Feb 18, 2015
·
18 revisions
The fast and easy way for user authorization in CakePHP 3.x applications.
NOTE: Docs will now move into repo.
- Singe or multi role
- DB (dynamic) or Configure based role definition
- INI file (static) based access rights (controller-action/role setup)
- Lightweight and incredibly fast
Do NOT use if
- you need ROW based access
- you want to dynamically adjust access rights (or enhance it with a web frontend yourself)
Planned features (not yet available):
- AuthShell for easy CLI access / setup
- Web frontend to optionally allow dynamic access rights
Most of the docs is still valid, with the exception of the migration changes above.
Coming from the Tools plugin in 2.x, the following changed for the 3.x version:
- We now use tables instead of models, thus the plural version everywhere:
CLASS_USER
is now probablyUsers
etc - Config option
aclModel
is nowaclTable
, and pluralRoles
by default. - Configure::write()/read() now also expects the plural
Roles
key if you define configure based roles:$config['Roles'] = ...
- Since session access is now not static anymore, the Auth class itself as convenience wrapper should not be used anymore. Instead the functionality of it could be used in conjunction with components/helpers. For models the information should be passed in from the controller.