On 02/10/2021 01:48, Jerry Malcolm wrote:
I need to write a custom BasicAuthenticator class to decode a
specialized encoding of the authToken. I have been scouring google for
info. I found one post where the answer included the statement:
"Extending from AuthenticatorBase is a great idea, and you can avoid
Tomcat's standard authenticator by configuring your authenticator as a
in your application's META-INF/context.xml file."
That is precisely what I want to do. But I cannot find any
documentation on how to configure a different authenticator class in a
context.xml file. I'm sure I'm just missing it, or I'm using totally
incorrect words in the googe searches to find it.
Can someone please point me to the documentation for this?
http://tomcat.apache.org/tomcat-10.0-doc/config/valve.html#Authentication
Your Valve needs to implement Authenticator (which it will if you extend
AuthenticatorBase) so Tomcat knows it is providing authenticator rather
than just a regular Valve.
You'll end up with something like:
<Context>
<Valve className="my.custom.Authenticator" />
</Context>
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org