Using a different authentication mode based on protocol