Implement authorization for server API client