Hi Ryan,

comments in-line


2014-02-03 Ryan Moquin <[email protected]>:

> I was trying to create a WAB that has it's resources secured and run it in
> Karaf to show how easy it is for a work project.   Of course,  I'm not
> doing too good with the easy part :)
>
> Anyhow,  I setup a custom named jdbc realm using Blueprint and then
> configured a security constraint in the web.xml which points to that
> realm.   When I deploy the WAB,  I get the following error:
>
> No LoginService for org.eclipse.jetty.security.authentication  in
> org.eclipse.jetty.security.ConstraintSecurityHandler
>

Could you share some samples, cause this should be quite easy :)
You need to make sure jetty knows of that security handler, for this you'll
need to alter the jetty.xml in the etc folder.


> I saw examples where other people used jetty specific jaas classes,  but I
> don't want to do that.   I want to stick with the Karaf jaas classes.  I
> considered using spring security but that feels like overkill to pull
> spring in for security.
>
> I also considered using camel to serve the static content and provide the
> security but couldn't find a good way to do it.
>

I think using a "normal" wab is sufficient enough, camel might be a bit
"overkill", though this depends, as usual, on your use-case ;)


>  I wanted to find a way that allows me to show off the flexibility that
> OSGi provides in being able to update the web app by keeping everything
> modular such as with the blueprint jaas configuration.   Things will get
> more complicated since users should be able to update their password  and
> an admin can administer the users,  but I had trouble when experimenting
> with Syncope and Sling..  a lot of other options just aren't clear how to
> set them up or are nearly 200 my in size.   I never thought I'd have such
> trouble taking such a small task and finding a way to implement it quickly
> but in a way that shows off Karaf.
>
Btw,  I think some of my concerns about weight are because this is going to
> be deployed to AWS...  Other than the issue above..  Let me know if anyone
> has any good suggestions on any technology that might help me highlight
> Karaf and true to get it as the platform for our future projects.
>
> Thanks for any help!
>
> Ryan
>

regards, Achim

-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to