L.S.,

You don't necessarily have to code your own authentication service -
ServiceMix 3.x ships with an implementation that uses the
conf/users-*.properties and conf/groups.properties files to define the
credentials.  If you want to leverage that, it should suffice to set the
authMethod attribute on the HTTP endpoint you're defining (e.g.
authMethod="basic").

If you want to implement you own authentication service, all you need to is
implement the interface, package it and add the jar to the lib folder and
then reconfigure the conf/component.properties file to point to your new
implemenation instead.  On the endpoint itself, nothing really has to
change.

All that being said, on ServiceMix 3.x as well you have the option to use
the corresponding camel-jetty component instead - there's more info on
using this component in http://camel.apache.org/jetty.html

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/


On Thu, May 24, 2012 at 11:20 AM, barisa42 <[email protected]>wrote:

> Thanks Gert,
> I was able to look through the HttpConfiguration.java.
> If I understand it well, the AuthenticationService interface is used to
> authenticate the given user.  But I wasn't able to find a way to implement
> given interface.
>
> So, to conclude, to enable http authentication, I need somehow to implement
> AuthenticationService, but I don't know how.
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/How-to-enable-jetty-http-authorization-in-3-3-2-tp5713337p5713351.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Reply via email to