DNN-4465 Make the authorize method virtual so that it can be overridden in child classes.