From user-return-19653-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Fri Nov 23 18:01:20 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BAF14180660 for ; Fri, 23 Nov 2018 18:01:19 +0100 (CET) Received: (qmail 47611 invoked by uid 500); 23 Nov 2018 17:01:18 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 47601 invoked by uid 99); 23 Nov 2018 17:01:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2018 17:01:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 66A3D18A91D for ; Fri, 23 Nov 2018 17:01:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.3 X-Spam-Level: X-Spam-Status: No, score=0.3 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id qzLS7HX3T5Kt for ; Fri, 23 Nov 2018 17:01:17 +0000 (UTC) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EFA0D5FACD for ; Fri, 23 Nov 2018 17:01:16 +0000 (UTC) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.110] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 7E9C6FF802 for ; Fri, 23 Nov 2018 17:01:10 +0000 (UTC) Subject: Re: Using Shiro 1.4.x in OSGi To: user@karaf.apache.org References: From: =?UTF-8?Q?Jean-Baptiste_Onofr=c3=a9?= Message-ID: Date: Fri, 23 Nov 2018 18:01:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit s/Shira/Shiro/g ;) On 23/11/2018 17:59, Jean-Baptiste Onofré wrote: > Hi Steinar, > > François and I started to work on Shira, providing a feature and > updating the core code. It's still a work in progress, but it will > provide a better Karaf integration. > > Regards > JB > > On 23/11/2018 17:08, Steinar Bang wrote: >> I'm in the process of trying to move from my use of Shiro 1.3.1 to >> provide authentication and authorization to a webapp, to Shiro 1.4.x. >> >> Problems so far: >> 1. shiro-core requires spring-beans in a manifest.mf import-package, in >> addition to being an extra dependency, spring-beans and its >> dependencies aren't OSGi bundles, so karaf needs to wrap them >> 2. Classloader issues, because Shiro 1.4.x uses reflection to create >> classes >> >> Details can be provided if of interest, but I imaging anyone who's tried >> usign Shiro 1.4.x have quickly encountered the classloader issue...:-) >> >> I have been pondering how to proceed with this. Some possible >> approaches: >> 1. Try to satisify all the runtime dependencies that the classes that >> currently won't load, requires (I'm not sure if this is even >> possible?) >> 2. Slurp all of shiro-core into my bundle (not a desirable approach, >> since I would like to have pluggable realms) >> 3. Create a new bundle wrapping shiro-core, and adding a DS component >> that instantates and exposes a SecurityManager service >> 4. Other...? >> >> Thanks! >> >> >> Steinar >> >> > -- Jean-Baptiste Onofré jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com