Keep in mind that if you add both AuthorizeAttribute with users and your own ClientIPAuthorizeAttribute with the client IP address, unauthorized users at the specified IP address will not be allowed ...
This is because individual AuthorizeAttribute cannot communicate with each other to make a logical OR . Subclassification is the easiest and cleanest way to achieve what you want.
source share