1

I am currently using CakePHP 4 with the following plugins installed:

  • cakephp/acl CakePHP ACL plugin
  • cakephp/authorization CakePHP authorization plugin

Before, we used the AuthComponent with the ACL plugin to check for authorization.

Now, the AuthComponent is deprecated and the alternative is to use the authorization plugin.


How do I use the ACL plugin together with the authorization plugin to check for authorization on each request?

kgbph
  • 841
  • 1
  • 8
  • 26
  • 1
    These two plugins are not ment to work together, `cakephp/acl` is strictly ment for use with the deprecated auth component. If you want ACLs for `cakephp/authorization`, then you need to implement that yourself. – ndm Jul 05 '21 at 08:44
  • @OP were you able to achieve this? If yes, how? I'd be very interested in a solution as I have the same problem. – mrodo Jun 01 '22 at 08:21

0 Answers0