Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 12001 invoked from network); 14 Jan 2011 16:28:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jan 2011 16:28:29 -0000 Received: (qmail 88046 invoked by uid 500); 14 Jan 2011 16:28:29 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 87875 invoked by uid 500); 14 Jan 2011 16:28:27 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 87866 invoked by uid 99); 14 Jan 2011 16:28:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 16:28:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gnodet@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-wy0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 16:28:20 +0000 Received: by wyg36 with SMTP id 36so3052000wyg.32 for ; Fri, 14 Jan 2011 08:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=YBBGoI/FYKY8Hx9ln2DVK0rlT/zqpDVmxNb1luBk5Us=; b=m0oMgtKTfTDUxuKZD08ZVviKOCEV8C2vqIXchBE6H5vCP+uAC06WKkVORgS3goKQKC LVCSJNi7daiY2JC9xvX6waHEcB/nYwP/c2WGeNFb7/yX4S1o03EtOQrMrxBGgWp2rTpy 9FHHHy4FoO+kS0OgV3M77jtcVXrymxnO+vaM8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XBf67gsHcd33IcI9Bqd57KcIZ4E3meNOoGHWtbkidYB97OGZdcsbvG2N1bd1ZrTWTv ToTswqlY/WTpciB66zT5F9STISxqLeBZXZji2+IHoJsbBwBvms9+lDS1Rjw2Uyg5ujta orwvffqgVDiwoLrqdnnc+epWATyFwObm+XoWA= MIME-Version: 1.0 Received: by 10.227.132.206 with SMTP id c14mr904686wbt.124.1295022460698; Fri, 14 Jan 2011 08:27:40 -0800 (PST) Received: by 10.227.132.139 with HTTP; Fri, 14 Jan 2011 08:27:40 -0800 (PST) In-Reply-To: References: Date: Fri, 14 Jan 2011 08:27:40 -0800 Message-ID: Subject: Re: Issue with camel OSGI Servlet and jetty Security From: Guillaume Nodet To: dev@karaf.apache.org Cc: dev Content-Type: multipart/alternative; boundary=0016e659f6f8bf03a50499d0e930 X-Virus-Checked: Checked by ClamAV on apache.org --0016e659f6f8bf03a50499d0e930 Content-Type: text/plain; charset=ISO-8859-1 Right, see how it's done in Karaf for the web console: http://svn.apache.org/repos/asf/karaf/trunk/webconsole/branding/src/main/java/org/apache/karaf/webconsole/JaasSecurityProvider.java That one is called by the HttpContext created by the webconsole in the handleSecurity() method: http://svn.apache.org/repos/asf/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManagerHttpContext.java On Fri, Jan 14, 2011 at 07:33, Achim Nierbeck wrote: > I think for the OSGI Servlets, the OSGi container does the security > directly like done with the webconsole plugin. Could you please take a > look at it. Never the less I will take a deeper look at this later > today :) > > > 2011/1/14 Charles Moulliard : > > Hi, > > > > I have deployed successfully camel OSGI Servlet (as mentioned in the > > wiki page updated of camel) - 2.6-SNAPSHOT and being able to use it > > with a camel > > > > Now I would like to configure jetty using the configuration file > > deployed in /etc/jetty.xml like this > > > > > > > Configure//EN" "http://jetty.mortbay.org/configure.dtd"> > > > > > > > > > > > > > > > > > > > > > > > > class="org.eclipse.jetty.server.nio.SelectChannelConnector"> > > > > default="8282"/> > > 300000 > > 2 > > false > > 8443 > > 20000 > > 5000 > > > > > > > > > > > > > > > > karaf > > karaf > > > > > > > > > > - This option is enable using the following property : > > org.ops4j.pax.web.config.file=./etc/jetty.xml > > - The security is enable with the JAASLoginService > > > > Unfortunately the client is not authenticated when the browser sends > > the request to the Jetty Server and receive well an answer from camel > > route. > > > > Any idea is welcome ? > > > > Here is the list of bundles deployed. > > > > [ 240] [Active ] [ ] [ ] [ 60] camel-http > > (2.6.0.SNAPSHOT) > > [ 241] [Active ] [ ] [ ] [ 60] camel-servlet > > (2.6.0.SNAPSHOT) > > [ 242] [Active ] [ ] [ ] [ 60] CAMEL :: OSGI :: > > Servlet (1.0.0) > > [ 248] [Active ] [ ] [Started] [ 60] spring-context.xml > (0.0.0) > > [ 249] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > > Extender - Whiteboard (0.8.2.SNAPSHOT) > > [ 250] [Active ] [ ] [ ] [ 60] OPS4J Pax Url - > > war:, war-i: (1.2.1) > > [ 251] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > > Jsp Support (0.8.2.SNAPSHOT) > > [ 252] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > > Extender - WAR (0.8.2.SNAPSHOT) > > [ 253] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > > FileInstall Deployer (0.8.2.SNAPSHOT) > > [ 254] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > > API (0.8.2.SNAPSHOT) > > [ 255] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > > Service SPI (0.8.2.SNAPSHOT) > > [ 256] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > > Runtime (0.8.2.SNAPSHOT) > > [ 257] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > > Jetty (0.8.2.SNAPSHOT) > > [ 269] [Active ] [ ] [ ] [ 60] Jetty :: > > Utilities (7.2.2.v20101205) > > [ 270] [Active ] [ ] [ ] [ 60] Jetty :: Plus > > (7.2.2.v20101205) > > [ 271] [Active ] [ ] [ ] [ 60] Jetty :: JNDI > > Naming (7.2.2.v20101205) > > > > > > > > Regards, > > > > > > Charles Moulliard > > > > Sr. Principal Solution Architect - FuseSource > > Apache Committer > > > > Blog : http://cmoulliard.blogspot.com > > Twitter : http://twitter.com/cmoulliard > > Linkedin : http://www.linkedin.com/in/charlesmoulliard > > Skype: cmoulliard > > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --0016e659f6f8bf03a50499d0e930--