Re: [OSGi] - Configuration and classloader

2019-08-02 Thread Steinar Bang
> Steinar Bang : > Francois Papon > : >> Hi Steinar, >> I started some test projects, you can take a look here: >> https://github.com/fpapon/shiro-labs > thanks! I may be able to replace the deprecated > WebIniSecurityManagerFactory with stuff from here: > > https://github.com/fpa

Re: [OSGi] - Configuration and classloader

2019-07-24 Thread Steinar Bang
> Francois Papon : > Hi Steinar, > I started some test projects, you can take a look here: > https://github.com/fpapon/shiro-labs thanks! I may be able to replace the deprecated WebIniSecurityManagerFactory with stuff from here: https://github.com/fpapon/shiro-labs/blob/master/karaf-jaxrs/

Re: [OSGi] - Configuration and classloader

2019-07-24 Thread Francois Papon
Hi Steinar, I started some test projects, you can take a look here: https://github.com/fpapon/shiro-labs regards, François fpa...@apache.org Le 24/07/2019 à 12:32, Steinar Bang a écrit : >> Francois Papon : >> Thoughts? > I'm excited to see this, because of authservice > > https://github

Re: [OSGi] - Configuration and classloader

2019-07-24 Thread Jean-Baptiste Onofré
Hi I started something similar with a Shiro service. I will share the PR later today. Regards JB Le 24 juil. 2019 à 12:32, à 12:32, Steinar Bang a écrit: >> Francois Papon >: > >> Thoughts? > >I'm excited to see this, because of authservice >https://github.com/steinarb/authservice#forms-ba

Re: [OSGi] - Configuration and classloader

2019-07-24 Thread Steinar Bang
> Francois Papon : > Thoughts? I'm excited to see this, because of authservice https://github.com/steinarb/authservice#forms-based-nginx-login-and-pluggable-shiro-auth-in-karaf I'm currently doing configuration as a combination of 1. OSGi service dependency injection (that's how I get the

Re: [OSGi] - Configuration and classloader

2019-07-23 Thread jb
I'm working on PR today to illustrate the "private" approach. I will share on this thread for discussion. Regards JB On Wednesday, July 24, 2019 06:43 CEST, Jean-Baptiste Onofré wrote:  Yeah, agree. That's why I think it makes more sense to embed shiro as private. We just have to document an

Re: [OSGi] - Configuration and classloader

2019-07-23 Thread Jean-Baptiste Onofré
Yeah, agree. That's why I think it makes more sense to embed shiro as private. We just have to document and provide an example. Regards JB Le 23 juil. 2019 à 23:49, à 23:49, Brian Demers a écrit: >IMHO in web environment, you typically do NOT want to set the static >instance of the SecurityMan

Re: [OSGi] - Configuration and classloader

2019-07-23 Thread Brian Demers
IMHO in web environment, you typically do NOT want to set the static instance of the SecurityManager. But instead, bind it to the request (or similar context). In our Spring integration (and I assume Guice) we expose the SecurityManger as a bean, can you do something similar? I'm not sure if this

Re: [OSGi] - Configuration and classloader

2019-07-23 Thread jb
Hi, Actually, I think it's not a good idea to provide a Shiro Karaf feature as it is, without details. As we are using singleton and configuration loaded by TCCL, it means that all will be in an unique classloader and doesn't work as expected. I think it makes more sense to embed Shiro as pri

[OSGi] - Configuration and classloader

2019-07-23 Thread Francois Papon
Hi guys, After many brainstorming with JB and make some tests on the integration of Shiro in OSGi and especially with Karaf, I noticed that we have some classloader issues that we have to deal with. A good example is the SecurityUtils class that is a singleton and if we want to configure multiple