Comments (7)
The concept of apply scope make sense. I'm not sure if we can make scope
, action
, operation
consistent in all places.
I'm dropping the action name change.
from authorization.
I should point out that I'm suggesting a config format change to combine the various action-specific configs into a single action => [config]
format. This will avoid the need for confusing functions.
from authorization.
👍 for AuthorizationComponent::authorize()
=> AuthorizationComponent::access()
, not sure about replacing the other methods with setConfig()
. I haven't used the component enough to have an informed opinion on it.
from authorization.
👍 for
AuthorizationComponent::authorize()
=>AuthorizationComponent::access()
, not sure about replacing the other methods withsetConfig()
. I haven't used the component enough to have an informed opinion on it.
The reason for the change is authorizeModel()
doesn't make sense especially now. I could replace it with another name, but seemed awkward.
It's an alternative for discussion.
from authorization.
We already use the term scope in Authorization to mean the type of access requested for a resource. It make sense to use it consistently.
Using scope
to mean two different things in this plugin is a bit concerning to me. Could access()
use operation instead?
from authorization.
Using
scope
to mean two different things in this plugin is a bit concerning to me. Couldaccess()
use operation instead?
I also want a consistent word for the "type of access" being requested for anything. It's currently "action", and I think that's confusing. I was going to suggest scope
since we have applyScope
... but maybe that name needs to be adjusted as well since apply
doesn't make sense.
from authorization.
The idea behind apply was that those methods mutate a query or selection so that access controls have been 'applied'.
from authorization.
Related Issues (20)
- Policy for Modelless controller HOT 15
- Can't use i18n and get plugin in different locale HOT 5
- Allow for AuthorizationComponent::can to not set $authorizationChecked HOT 3
- "Call to a member function getOriginalData() on null" Cake4 - RequestAuthorizationMiddleware HOT 12
- FR: visualization of policies HOT 5
- ORM Policy resolver broken HOT 2
- Error to test login with phpunit: setAuthorization() HOT 2
- MissingPolicyException using Paginator HOT 6
- Problem with policies HOT 2
- Check entity authorization inside entity HOT 2
- How can an user redirect with Request Authorization Middleware? HOT 1
- Allow passing extra options to applyScope() HOT 1
- Deprecated logs after update to CakePHP 4.3 and PHP 8.1.0 HOT 2
- Allow multiple optional parameters to be passed down to applyScope()
- PHP8.2: Using ${var} in strings is deprecated, use {$var} instead HOT 2
- Suggestion: narrowing the type of $resource HOT 5
- Feature request: Allow Table policies to use BeforePolicyInterface HOT 7
- Feature request: Make Authorization service available via DI in the Middleware HOT 3
- Feature request: Make Authorization service available via DI in the Middleware HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authorization.