added implementation for authorization to HTTP client