adding support for basic http authentication over api