Authentication http client improved