Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1924

Include Session object in AuthorizationProvider API

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Critical
    • 3.3.0.Final
    • None
    • JCR, Security
    • None

    Description

      Main goal for writing an org.modeshape.jcr.security.AuthorizationProvider is to control security access of JCR operation via hasPermission() method.

      Current API:

      public boolean hasPermission(ExecutionContext context, String repositoryName, String repositorySourceName,
      String workspaceName, Path path, String... actions)

      has a Path object, but sometimes path can be relative without any access to its absolute path, for example using addNode(<relative_path>).

      This creates a limitation and it's not possible to design an ACL service for modeshape using this API, due we need to know the absolute path and context of the node that a user is trying to create to check if user hasPermission to create it under a specific path.

      Also, this issue comes due we don't have an ACL service, so a user needs to create a custom AuthorizationProvider to implement these features on ModeShape.

      Attachments

        Activity

          People

            rhauch Randall Hauch (Inactive)
            lponce@redhat.com Lucas Ponce
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: