Added support for base authentication