Webrick global authentication

I’m doing a small ruby application for an embedded device. There are
some servlets and a few HTML pages.
The whole web application should be passwort protected. As far as I
understand I have to create and authenticator and use this in every
servlet.
Is there any possibility to use an “global” authenticator without
putting it in every servlet?

Ok, it seems nobody has an idea and I have to do it in the servlets :frowning: