Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-5221

Add regular expression in RH-SSO/Keycloak Role Check policy

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • None
    • 2.8 GA
    • Gateway
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

    Description

      It could be useful to have regular expressions for both field resource and realm_role.

      So that:

      {
        "scopes": [
          { "realm_roles": [ { "name": "role1" } ], "resource": "/resource1" },
          { "realm_roles": [ { "name": "role2" } ], "resource": "/resource1" },
          { "realm_roles": [ { "name": "role1" } ], "resource": "/resource2" },
          { "realm_roles": [ { "name": "role2" } ], "resource": "/resource2" }
        ]
      }
      

      can be written as

      {
        "scopes": [
          { "realm_roles": [ { "name": "role1|role2" } ], "resource": "/resource\S*" }
        ]
      }
      

      This kind of syntax could lower the effort to fill the configuration desired for this policy.

      Attachments

        Activity

          People

            eloycoto Eloy Coto (Inactive)
            rhn-support-cpalmier Carlo Palmieri (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: