This project is read-only.


an error in test project


Thanks for this project, very userful.
The test project has an error.
Policy names are required. The following policy type(s) inherit from IAuthorizationPolicy but do not have a policy name set through the PolicyMetadataAttribute: MvcAuthorization.Web.Test.Policy.MyCustomPolicy
to avoid this ,insert the name attribute to MyCustomPolicy, like this:
    [PolicyMetadata(Name = "MyCustomPolicy")]      // insert this
    public class MyCustomPolicy : AuthorizationPolicy
        public override ApplyPolicyResult ApplyPolicy(ApplyPolicyArgs args)
            return new ApplyPolicyResult() { IsAuthorized = true };
Closed Sep 21, 2013 at 3:54 PM by RyanMWright
I have updated the file. Sorry about that!