authorization
authorization copied to clipboard
PSR7 Middleware for authorization
This should fix #120
I try to use to add the RequestAuthorizationMiddleware for some controller in my application in cake 4. In the [Authorization Middleware](https://book.cakephp.org/authorization/2/en/middleware.html) i see a code block like this: ```php $middlewareQueue->add(new...
Quick draft to add an `unauthorizedRedirect` option to the `RequestAuthorizationMiddleware`. Some open questions: - Shall we handle a 404 by the `RoutingMiddleware`? - Is a simple string enough, or do...
With CakePHP2 we used ACL; it was very straightforward to show which role/user is authorized to do 'something'. Now (CakePHP4) we use policies, which have no such visual aspect. During...
I have users and usersEmployments controllers and entities. I have created UserPolicy.php and UsersEmploymentsPolicy.php, now the problem is I am trying to access /users-employments/edit/4 it supposed to go to UsersEmploymentsPolicy.php...
I use `AuthorizationComponent::can` to check if a particular menu item should be shown (menu array is set as viewVar), this then breaks the `requireAuthorizationCheck` security feature. It would be good...
After using the plugin in a Cakephp 3.8 app, I realized that you cannot use bin\cake i18n extract to get the plugin in your app locale. It would be nice...
I have a case where my ORM policies need some dependencies. I'd like to pull those from a DIC. I was thinking that it may be a good idea to...
I am using Authorization plugin and created Policies and these policies working good in the controller like can index/add/edit/delete but i have issue in the view index.php there i need...