using Codelyzer.Analysis;
namespace CTA.FeatureDetection.AuthType.CompiledFeatures
{
public class WindowsAuthorizationFeature : WindowsAuthenticationFeature
{
///
/// Determines if Windows Authorization is being used in a given project based on
/// Web.config settings
///
/// Qualifications:
/// 1. Web.config uses authorization:
///
///
///
///
///
///
///
///
///
///
/// Source code analysis results
/// Whether or not Windows Authorization is used
public override bool IsPresent(AnalyzerResult analyzerResult)
{
var config = LoadWebConfig(analyzerResult.ProjectResult.ProjectRootPath);
return base.IsPresent(analyzerResult) && config.ContainsElement(Constants.AuthorizationElementPath);
}
}
}