implement the getAccessToken method for HttpClient