Konrad Windszus created JCR-4689:
------------------------------------

             Summary: Extend JackrabbitSession to allow access to all 
principals bound to the current session
                 Key: JCR-4689
                 URL: https://issues.apache.org/jira/browse/JCR-4689
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-api
    Affects Versions: 2.21.6
            Reporter: Konrad Windszus


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()}} 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to