[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Jetty Security Handler

Hi Amit,

You can provide basic yes/no authentication by registering your
servlets/resources with a custom HttpContext and implementing
HttpContext.handleSecurity().
This has been used to support BASIC authentication with UserAdmin although
I'm not aware of an open source implementation.

If you're doing something a bit more sophisticated where you need to
decouple your HttpContext from your authentication then you might want to
write a Servlet Filter. Unfortunately the OSGi Http Service does not
currently provide Filter support however you can wrap your Servlets and
Resources fairly easily. See FilterServletAdaptor in "cvsroot/eclipse"
"equinox-incubator/org.eclipse.equinox.http.helper"

-Simon

equinox-dev-bounces@xxxxxxxxxxx wrote on 12/30/2007 06:56:55 AM:

> Hello Equinox Developers,
>
> I am using Jetty osgi bundle v5_1_11, but now I find myself  needing
> to add a security handler  to support basic http and looking at the
> properties exposed in the OSGI/metatype/config.xml, I don't see that
> it has been exposed (I couldn't find it in the code -Let me know if I
> missed something). Has anyone worked on providing such a
> functionality in the  OSGi context? What would you recommend?
>
> Best,
> Amit
>
> ---------------------------------------------------------
> Amit Kumar
> Research Programmer
> The Graduate School of Library and Information Science
> University of Illinois, Urbana Champaign IL, 61820
> phone: 217-333-4118 fax: 217-244-3302
> ---------------------------------------------------------
>
>
>
>
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev