-
Notifications
You must be signed in to change notification settings - Fork 43
Home
Mark edited this page Oct 13, 2023
·
18 revisions
TinyAuth plugin | branch | CakePHP core | PHP min |
---|---|---|---|
0.x [EOL] | 2.x | PHP 5.4 | |
1.x [EOL] | 3.x | PHP 5.6 | |
2.x [EOL] | cake3 | 3.8+ | PHP 5.6 |
3.x | cake4 | 4.x | PHP 7.2 |
4.x | master | 5.x | PHP 8.1 |
Planned features (not yet available):
- AuthShell for easy CLI access / setup
cake auth [add|remove] [Plugin.prefix/Controller] [action(s)|*] [role(s)|*]
cake auth add MyAuth.admin/MyAuth myAction admin,mod
cake auth remove MyAuth.admin/MyAuth myAction admin
- automatic cleanup / alphabetical ordering included
- Maybe some automatic actions retrieval via
cake auth sync
?
- Web frontend to optionally allow dynamic access rights: https://github.com/dereuromark/cakephp-tinyauth-backend
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.