WizelineLabs / access-decision-manager

access-decision-manager
MIT License
6 stars 2 forks source link

Add support for access strategies #29

Closed LeoUrzua closed 4 years ago

LeoUrzua commented 4 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Users want to provide different access strategies to determine access. which can be: affirmative, consensus or unanimous. even a custom strategy can be provided

For more info take a look to https://symfony.com/doc/current/components/security/authorization.html#components-security-access-decision-manager

Describe the solution you'd like A clear and concise description of what you want to happen.

Provide a 4 argument options for the core adm to support different access strategies. And provide some strategies to be imported/used. if no strategy is provided then take the affirmative one by default

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

This suggestion came up from a talk with @m14t Also, the 4th argument options { strategy: function} in the case that more arguments could be added