karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steinar Bang ...@dod.no>
Subject Re: Apache Shiro in Karaf
Date Fri, 04 Nov 2016 16:27:48 GMT
>>>>> Bengt Rodehav <bengt@rodehav.com>:

> It seems that if I comment away the following line in etc/system.properties
> then the basic authentication goes away:

> *karaf.local.roles = admin,manager,viewer,systembundles*

> Not sure how this works. Would appreciate if someone could explain.

Except for the fact that one of my karaf installations is failing
mysteriously I have successfully used shiro basic authentication in

The changes were:
 1. Added the ShiroFilter to the web.xml of my webapp
 2. Added a shiro.ini file to the webapp
 3. Added a custom realm (maybe I can replace this by the JDBC realm...?
    But I was trying out stuff and learning as I created it)
 4. Added a redirection in the main JSF page redirecting the admins to a
    different page (that's the preRenderView <f:event> tag)
 5. Added a redirect method to the bean serving the main JSF page
 6. Pulled in shiro-core and shiro-web as runtime dependencies

And that was it, basically.

I basically just followed the directions I found here, and adapted them
to a pax-web setting: 

View raw message