conditional usage of custom authorization