authorization icon indicating copy to clipboard operation
authorization copied to clipboard

PSR7 Middleware for authorization

Results 12 authorization issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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...

enhancement

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...

enhancement

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...

enhancement

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...