Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-663

Add ability to 'OR' roles with the Authorization Policy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.1.8.Final, 1.1.x
    • None
    • Policy
    • None

      Hi,

      Please add the ability to match against any of a set of possibly orthogonal roles for an endpoint pattern (i.e. an 'OR' condition) rather than just AND-ing over all endpoint policies.

      Currently, the apiman authorization policy treats roles as endpoint claims with its mapping of a single role to a given endpoint pattern and http verb. To allow role A OR role B access to an endpoint matching the pattern (e.g. as flowed through the Keycloak authentication policy plugin), both A and B would have to share a common role/claim for that endpoint. When externalizing fine-grained API authorization into apiman, the current AND-ing behavior causes an explosion in roles. It would great to have the option to use higher-level roles and just match a given pattern to any role in the list A,B,...

      Thanks in advance!
      Robert

            ewittman@redhat.com Eric Wittmann
            rob3c Robert Raiford (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: