Adding http basic auth support