Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-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 29C9710FE1 for ; Mon, 4 Nov 2013 21:50:17 +0000 (UTC) Received: (qmail 2703 invoked by uid 500); 4 Nov 2013 21:50:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 2605 invoked by uid 500); 4 Nov 2013 21:50:13 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 2596 invoked by uid 99); 4 Nov 2013 21:50:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2013 21:50:13 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of sappling@automatedlogic.com does not designate 67.231.144.184 as permitted sender) Received: from [67.231.144.184] (HELO mx0a-00105401.pphosted.com) (67.231.144.184) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2013 21:50:07 +0000 Received: from pps.filterd (m0004340.ppops.net [127.0.0.1]) by mx0a-00105401.pphosted.com (8.14.5/8.14.5) with SMTP id rA4LmFaJ028183 for ; Mon, 4 Nov 2013 16:49:47 -0500 Received: from xmnpv32.utc.com (xmnpv32.utc.com [159.82.164.212]) by mx0a-00105401.pphosted.com with ESMTP id 1fxess9msp-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK) for ; Mon, 04 Nov 2013 16:49:46 -0500 Received: from pps.filterd (XMNPV32.utc.com [127.0.0.1]) by xmnpv32.utc.com (8.14.5/8.14.5) with SMTP id rA4Lku5c004371; Mon, 4 Nov 2013 16:49:44 -0500 Received: from uusmna1r.utc.com (uusmna1r.utc.com [159.82.219.64]) by xmnpv32.utc.com with ESMTP id 1frgtw5b1s-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Mon, 04 Nov 2013 16:49:44 -0500 Received: from mail1.corp.automatedlogic.com ([172.31.230.164]) by uusmna1r.utc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.2.2) with ESMTP id rA4LniI6020112 for ; Mon, 4 Nov 2013 16:49:44 -0500 In-Reply-To: References: Subject: Re: [External] Re: Custom Authenticators X-KeepSent: 4E258121:F5E6B9E6-85257C19:00773772; type=4; name=$KeepSent To: "Tomcat Users List" X-Mailer: Lotus Notes Release 8.5.1FP3 May 23, 2010 Message-ID: From: Steve Appling Date: Mon, 4 Nov 2013 16:47:36 -0500 X-MIMETrack: Serialize by Router on ALC-Postoffice1/ALC(Release 8.5.3|September 15, 2011) at 11/04/2013 04:47:31 PM MIME-Version: 1.0 Content-type: multipart/alternative; Boundary="0__=0ABBF68ADFE4B1E28f9e8a93df938690918c0ABBF68ADFE4B1E2" Content-Disposition: inline X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=2 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1305240000 definitions=main-1311040168 X-Virus-Checked: Checked by ClamAV on apache.org --0__=0ABBF68ADFE4B1E28f9e8a93df938690918c0ABBF68ADFE4B1E2 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable Konstantin Kolinko wrote on 11/04/2013 03:11:5= 2 PM: > From: Konstantin Kolinko > To: Tomcat Users List > Date: 11/04/2013 03:10 PM > Subject: [External] Re: Custom Authenticators > > 2013/11/4 Steve Appling : > > > > > > In Tomcat 7 I could use the org.apache.catalina.startup.Embedded cl= ass' > > addAuthenticator method to set up my own custom authenticators. Th= is > > allowed me to define a new authenticator that a web-app could selec= t with > > in web.xml. Now that the Embedded class has been removed > > (in 8), I'm not sure how to accomplish this. Is there some way to = add a > > similar custom authenticator when using the Tomcat class? > > How to you configure it when running standalone? > > E.g (from TestDigestAuthenticator.java of Tomcat 7): > . > ctxt.getPipeline().addValve(new DigestAuthenticator()); > > Best regards, > Konstantin Kolinko Currently I am only running it embedded in another application. I'm no= t sure I understand your question about standalone. I know that the containing application can manually add any authenticat= or as a valve, but I have various web applications that are added to the product at runtime. The technique of using the addAuthenticator method= lets the developer of the web application select my custom authenticato= rs using the auth-method element.= --0__=0ABBF68ADFE4B1E28f9e8a93df938690918c0ABBF68ADFE4B1E2--