Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 192C16EC8 for ; Tue, 14 Jun 2011 01:44:47 +0000 (UTC) Received: (qmail 46098 invoked by uid 500); 14 Jun 2011 01:44:46 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 46056 invoked by uid 500); 14 Jun 2011 01:44:46 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 46048 invoked by uid 99); 14 Jun 2011 01:44:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 01:44:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of freeman.fang@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pw0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 01:44:38 +0000 Received: by pwi12 with SMTP id 12so2859770pwi.0 for ; Mon, 13 Jun 2011 18:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:from:to:in-reply-to:content-type :mime-version:subject:date:references:x-mailer; bh=25YcvTMmSdE9D/GE+o5v2C9GcNA3ZdMXcla8uCZvdUQ=; b=LNzoWkwmegOFJMjg4aDgkhwF4DDEK0Q++3f0gTnVzjkGE04R8+xubCv0Q3XK2I5yFk hAaLKNYR/Qck/VtbuJn+xI19emU2CH1nzqpfIgffoOYgHLx+F1DFlZErKi4UhqYqRkVg e8u6kXQTymavdjGcn/Me2VlmO4vOtwLj3y09E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=gHrl8fMqFh82IzibJULqZRYjlungEdzcxkSntH/ShzkqSuEGoeAaT/3Yz5yeu0EaYt 6UIgh+9k8roB6FHOYrzAqeFMEUO1W3oT/Wz5yTkGf6BGeds03XHAX10mA2Xqm+EY4suh mijO6fA/lnPslmFnwQSy6Q9BPWzCSh9hTUl7w= Received: by 10.142.55.16 with SMTP id d16mr990045wfa.27.1308015856666; Mon, 13 Jun 2011 18:44:16 -0700 (PDT) Received: from [192.168.1.100] ([123.122.4.88]) by mx.google.com with ESMTPS id x1sm5107449pbb.66.2011.06.13.18.44.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 18:44:15 -0700 (PDT) Message-Id: From: Freeman Fang To: users@cxf.apache.org In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-1--1003835936 Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: HTTP Basic CXF Interceptor with BasicAuthAuthorizationInterceptor Date: Tue, 14 Jun 2011 09:44:05 +0800 References: X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-1--1003835936 Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Hi, Sure, any contribution is welcome. And in CXF we also can use jetty security handler to enable basic auth =20= which can configure the realm easily, we have a system testcase for =20 it[1], you may wanna take a look. = [1]https://svn.apache.org/repos/asf/cxf/trunk/systests/transports/src/test= /java/org/apache/cxf/systest/http_jetty/JettyBasicAuthTest.java Freeman On 2011-6-13, at =E4=B8=8B=E5=8D=8811:34, Angelo zerr wrote: > Hi CXF Team, > > I would like to manage WebService with HTTP Basic CXF Interceptor =20 > and I have > not found this interceptor in the CXF. So I have used the great code =20= > from > = http://chrisdail.com/2008/03/31/apache-cxf-with-http-basic-authentication/= and > it works great. > I have noticed that some projects like > = http://code.google.com/p/fenius/source/browse/trunk/fenius-util/src/main/j= ava/is/glif/fenius/util/BasicAuthAuthorizationInterceptor.java?r=3D111have= > used this code and I tell me why CXF doesn't include the > BasicAuthAuthorizationInterceptor class? > > I have modified BasicAuthAuthorizationInterceptor to delegate user/=20 > password > to another interface implementation and if you wish I could send you =20= > my work > and tell to the author of the BasicAuthAuthorizationInterceptor if =20 > he is OK > to contribute to CXF. > > Thank a lot for your answer. > > Regards Angelo --------------------------------------------- Freeman Fang FuseSource Email:ffang@fusesource.com Web: fusesource.com Twitter: freemanfang Blog: http://freemanfang.blogspot.com --Apple-Mail-1--1003835936--