You can inject dependencies in attributes like AuthorizeAttribute in this way
var someservice = (ISomeService)context.HttpContext.RequestServices.GetService(typeof(ISomeService)); #######
...more succinct way to write the above code by @Code Ranger's comment below:
var someservice = context.HttpContext.RequestServices.GetService<ISomeService>();