Iauthorizationfilter web api. But very few have simple examples. I assume you are working with default implementation...