Basic auth working with json response