The approach you can take is to create a custom action filter and register it globally.
Something along the lines
public class MixedAuthenticationAttribute : System.Web.Http.Filters.ActionFilterAttribute { public override void OnActionExecuting(System.Web.Http.Controllers.HttpActionContext actionContext) {
source share