You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2025/02/05 11:39:00 UTC

[jira] [Commented] (OAK-9415) Allow access to all principals bound to the current session

    [ https://issues.apache.org/jira/browse/OAK-9415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924030#comment-17924030 ] 

Julian Reschke commented on OAK-9415:
-------------------------------------

FWIW, I really don't get why we wouldn't move this into JackrabbitSession. Is there a compelling reason other than that we don't want to touch it? (Which we have done since already). cc [~angela] 

> Allow access to all principals bound to the current session
> -----------------------------------------------------------
>
>                 Key: OAK-9415
>                 URL: https://issues.apache.org/jira/browse/OAK-9415
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: jcr
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>             Fix For: 1.40.0
>
>
> 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.20.10#820010)