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

Allow access to all principals bound to the current session

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.40.0
    • jcr
    • None

    Description

      Currently there is no API to retrieve all principals bound to a specific session (see https://issues.apache.org/jira/browse/JCRVLT-515). Session.getUserId() may at most return the user backing the first principal and https://www.javadoc.io/doc/org.apache.jackrabbit/jackrabbit-api/latest/org/apache/jackrabbit/api/JackrabbitSession.html does not expose any other method which can be used for that.

      In Oak this can be simply implemented via ContentSession.getAuthInfo().getPrincipals()

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: