|
|
@ -28,23 +28,21 @@ namespace Yavsc.Services
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
UserMatch Out = new OutOfCircle();
|
|
|
|
|
|
|
|
UserMatch In = new BelongsToCircle();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readonly ApplicationDbContext _dbContext;
|
|
|
|
private readonly UserMatch Out = new OutOfCircle();
|
|
|
|
readonly ILogger _logger;
|
|
|
|
private readonly UserMatch In = new BelongsToCircle();
|
|
|
|
|
|
|
|
|
|
|
|
readonly SiteSettings SiteSettings;
|
|
|
|
private readonly ApplicationDbContext _dbContext;
|
|
|
|
|
|
|
|
|
|
|
|
readonly string aclfileName;
|
|
|
|
private readonly SiteSettings SiteSettings;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private readonly string aclfileName;
|
|
|
|
|
|
|
|
|
|
|
|
readonly RuleSetParser ruleSetParser;
|
|
|
|
readonly RuleSetParser ruleSetParser;
|
|
|
|
|
|
|
|
|
|
|
|
public FileSystemAuthManager(ApplicationDbContext dbContext, ILoggerFactory loggerFactory,
|
|
|
|
public FileSystemAuthManager(ApplicationDbContext dbContext, IOptions<SiteSettings> sitesOptions)
|
|
|
|
IOptions<SiteSettings> sitesOptions)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_dbContext = dbContext;
|
|
|
|
_dbContext = dbContext;
|
|
|
|
_logger = loggerFactory.CreateLogger<FileSystemAuthManager>();
|
|
|
|
|
|
|
|
SiteSettings = sitesOptions.Value;
|
|
|
|
SiteSettings = sitesOptions.Value;
|
|
|
|
aclfileName = SiteSettings.AccessListFileName;
|
|
|
|
aclfileName = SiteSettings.AccessListFileName;
|
|
|
|
ruleSetParser = new RuleSetParser(false);
|
|
|
|
ruleSetParser = new RuleSetParser(false);
|
|
|
|