add support for BasicAuth

adding support for BasicAuth