Filter structure to handle multiple authentication modes