- What are the two interfaces that are used to control authorization to a resource?
IAuthorizationFilter and IAsyncAuthorizationFilter.
- Why are there two versions of each kind of filter?
There is always an asynchronous version, which should probably be preferred.
- How can we apply a filter by specifying its type on an action method?
Either through the ServiceFilterAttribute or TypeFilterAttribute.
- How can we apply an ordering to the application of filters?
When applying a filter using attributes, we can use the Order property.
- What are the different levels to which we can apply filters?
Global, controller, and action method.
- How can we pass context from...