Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2690

Add optional UserConfiguration#getUserPrincipalProvider()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.19, 1.3.0, 1.4
    • core
    • None

    Description

      while playing around with overall group principal resolution during the repository login, I thought that having a principal provider that knows about the details of the user management implementation may might be a slight improvement compared to the generic default implementation as present in org.apache.jackrabbit.oak.security.principal.PrincipalProviderImpl, which just acts on the UserManager interface and thus always creates intermediate Authorizable objects.

      in order to be able to get there (without having the default principal mgt implementation rely on implementation details of the user mgt module), we would need an addition to the UserConfiguration that allows to optionally obtain a PrincipalProvider; the fallback in the default PrincipalConfiguration in case the user configuration does not expose a specific principal provider would be the current (generic) solution.

      Attachments

        1. getgroupmembership.txt
          10 kB
          Angela Schreiber
        2. loginmembership_compare_userprincipalprovider.txt
          5 kB
          Angela Schreiber
        3. OAK-2690.patch
          60 kB
          Angela Schreiber

        Issue Links

          Activity

            People

              angela Angela Schreiber
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: