tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Appling <sappl...@automatedlogic.com>
Subject Re: [External] Re: Custom Authenticators
Date Mon, 04 Nov 2013 21:47:36 GMT

Konstantin Kolinko <knst.kolinko@gmail.com> wrote on 11/04/2013 03:11:52
PM:

> From: Konstantin Kolinko <knst.kolinko@gmail.com>
> To: Tomcat Users List <users@tomcat.apache.org>
> Date: 11/04/2013 03:10 PM
> Subject: [External] Re: Custom Authenticators
>
> 2013/11/4 Steve Appling <sappling@automatedlogic.com>:
> >
> >
> > In Tomcat 7 I could use the org.apache.catalina.startup.Embedded class'
> > addAuthenticator method to set up my own custom authenticators.  This
> > allowed me to define a new authenticator that a web-app could select
with
> > <auth-method/> 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 not
sure I understand your question about standalone.
I know that the containing application can manually add any authenticator
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 authenticators
using the auth-method element.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message