From oak-issues-return-82297-archive-asf-public=cust-asf.ponee.io@jackrabbit.apache.org Thu Jun 3 14:54:12 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 61DFC180643 for ; Thu, 3 Jun 2021 16:54:12 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id DBD525FF2A for ; Thu, 3 Jun 2021 14:54:11 +0000 (UTC) Received: (qmail 91371 invoked by uid 500); 3 Jun 2021 14:54:09 -0000 Mailing-List: contact oak-issues-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-issues@jackrabbit.apache.org Received: (qmail 91123 invoked by uid 99); 3 Jun 2021 14:54:08 -0000 Received: from mailrelay1-he-de.apache.org (HELO mailrelay1-he-de.apache.org) (116.203.21.61) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2021 14:54:08 +0000 Received: from jira2-he-de.apache.org (jira2-he-de.apache.org [168.119.33.54]) by mailrelay1-he-de.apache.org (ASF Mail Server at mailrelay1-he-de.apache.org) with ESMTPS id D90993EA61 for ; Thu, 3 Jun 2021 14:54:06 +0000 (UTC) Received: from jira2-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira2-he-de.apache.org (ASF Mail Server at jira2-he-de.apache.org) with ESMTP id 76B6CC81933 for ; Thu, 3 Jun 2021 14:54:06 +0000 (UTC) Date: Thu, 3 Jun 2021 14:54:06 +0000 (UTC) From: "Miroslav Smiljanic (Jira)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (OAK-9415) Allow access to all principals bound to the current session MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OAK-9415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Miroslav Smiljanic closed OAK-9415. ----------------------------------- > 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.3.4#803005)