Candor.Security.Web.CandorAuthenticationModule.CheckRequireAuthentication C# (CSharp) 메소드

CheckRequireAuthentication() 개인적인 정적인 메소드

Checks if a request needs to be authentication based on the url requested. Static resource files do not require authentication.
private static CheckRequireAuthentication ( HttpContext context ) : bool
context System.Web.HttpContext
리턴 bool
        private static bool CheckRequireAuthentication( HttpContext context )
        {
            var extension = System.IO.Path.GetExtension(context.Request.Url.LocalPath);
            if (extension != null)
            {
                if (IgnoreAuthExtensions.Contains(extension.ToLower()))
                    return false;
            }
            return true;
        }