Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-5622

Support injection of the @BeanParam parameters into a custom permission referenced in the @PermissionAllowed security annotation

XMLWordPrintable

      This PR allows to pass into custom `java.security.Permission` only parameters you need from a `@BeanParam`. I can imagine you have different types of `@BeanParam`s that share a header or query param etc. that you want to pass. It's alternative, but not only option. Instead of this, users could introduce level of abstraction (shared interface) they will inject into the `java.security.Permission` instead.

      IMO what this can be convenient in very simple scenarios, like when you want to pass `beanParam.field` into your custom `java.security.Permission`.

      Permission constructor parameters are newly matched automatically based on secured method parameter names.

              rh-ee-mvavrik Michal Vavrik
              blafond Barry LaFond
              Jose Carranza Jose Carranza
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: