Details

    • Type: Sub-Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Portal provides for JAX-RS applications a configuration configuration com.liferay.oauth2.provider.rest.internal.jaxrs.feature.configuration.ConfigurableScopeCheckerFeatureConfiguration that allows to map and check any scopes based on URL pattern matching using com.liferay.oauth2.provider.rest.internal.jaxrs.feature.ConfigurableScopeCheckerFeature

      The configuration can be created and managed using the portal System Settings portlet.

      Using osgi.jaxrs.application.select it is possible to target specific JAX-RS application.

      Property patterns specifies the actual scopes that matches to endpoint URLs. The syntax is following:

      "HTTP method pattern" :: "URL pattern" :: "Scopes delimited with comma"

      For example:

      ^GET$::^/apple/.*$::apple_read
      ^POST$::^/apple/.*$::apple_write,apple_read
      ^GET$::^/apple/public/.*$::
      ^.*$::^/apple/.*$::apple_all
      ^GET$::^/apple/.*$::everything.readonly
      ^.*$::^/apple/.*$::everything
      

      Patterns are checked and applied in the order of appearance, if none of the patterns matches, the algorithm returns value of allowUnmatched property.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                carlos.sierra Carlos Sierra
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Packages

                  Version Package