protected override bool AuthorizeCore(HttpContextBase httpContext)
        {
            string user     = httpContext.User.Identity.Name;
            string method   = httpContext.Request.HttpMethod;
            string resource = httpContext.Request.Url.AbsoluteUri;

            return(PolicyDecisionPoint.IsAcesssible(user, method, resource));
        }
Beispiel #2
0
 public static bool IsAutorized(string user, string method, string resource)
 {
     return(PolicyDecisionPoint.IsAcesssible(user, method, resource));
 }