Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add the possibility to set a Security annotation over a whole class #138

Open
ThibBal opened this issue Oct 2, 2019 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@ThibBal
Copy link
Contributor

ThibBal commented Oct 2, 2019

In order to secure a whole controller, to be able to add a @Security("user.hasRight('MY_SUPER_RIGHT')") above a Controller class could be a game changer ;-)

@moufmouf moufmouf added the enhancement New feature or request label Oct 3, 2019
@moufmouf moufmouf added this to the v4.1 milestone Dec 27, 2019
@oojacoboo
Copy link
Collaborator

Related to #196. We should look into expanding the auth and authz service interfaces to add global support. While requiring this annotation at the class level would be a step in the right direction, I'd argue that it still opens up the option for mistakes/forgetting to add it properly, etc. Therefore, a globally registered service would be ideal. How this is implemented will need to be looked into and possibly discussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants