I donβt believe that. The controller action with the best match for the parameters will be selected, and then the attributes will be applied.
you can use
if (Request.IsAuthenticated) { return "Authorized"; } else { return "Not Authorized"; }
Under the hood [Login] essentially the same thing is done
protected virtual bool AuthorizeCore(IPrincipal user) { if (user == null) { throw new ArgumentNullException("user"); } if (!user.Identity.IsAuthenticated) { return false; } ...snip... }
source share