First version of the basic authentication filter