read_data with authentication works