Skip to content

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

Description

@ThibBal

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 ;-)

Activity

  1. added this to the v4.1 milestone on Dec 27, 2019
  2. oojacoboo commented on Jun 12, 2022

    @oojacoboo
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions