Nov 23, 2012 at 12:41 PM
Edited Nov 23, 2012 at 12:49 PM
I am trying to integrate webapis filters with the core, but I have some issues on how to do it.
The first thing I did was installing the
Autofac.Integration.WebApi.dll, and then
I created a filter that implements
the interface IAutofacActionFilter, but the event OnActionExecuting was never fired.
So now I am following this procedure:
- Create a custom FilterProvider that inherit from System.Web.Http.Filters.IFilterprovider
- And the override the method ActionDescriptorFilterProvider of the System.Web.Http.Filters.
I have the same problem, the filter never gets fired
from the core, so now I
am a little bit frustrated and I don't know how to implement this filter.
We need this functionality because the APIs returns confidential data and we would like to have an authentication filter.
Any help would be very appreciate.