Add support for handling Basic Auth