# Webrick authentication

**URL:** <https://www.ruby-forum.com/t/webrick-authentication/91924>\
**Category:** Ruby\
**Created:** [April 13, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/webrick-authentication/91924 "2007-04-13T14:48:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Post date:** [April 13, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/webrick-authentication/91924/1 "2007-04-13T14:48:28Z")

</div>

Hello,

I am looking at the webrick authentication sample. I guess it would  
probably work but it is not what I want.

Using the sample I am able to create a function that requests  
authentication and returns a page.

However, I would like the authentication to stack with any existing  
servlet. How do I use authentication with one of the standard servlets  
or one I have written?

The only page I found recommends patching the server class to hack in  
the authentication.

Thanks

Michal
