public AuthenticationContextService(BaseLibrary.Web.IWebContext webContext, IAuthenticationContextInitializer[] authenticationContextInitializers, AdminSection adminConfig) { _webContext = webContext; _adminConfig = adminConfig; AuthenticationSection authSection = WebConfigurationManager.GetSection("zeus/authentication") as AuthenticationSection; if (authSection == null) authSection = new AuthenticationSection(_adminConfig); _rootLocation = authSection.ToAuthenticationLocation(); foreach (IAuthenticationContextInitializer initializer in authenticationContextInitializers) initializer.Initialize(this); }
public AuthenticationService(BaseLibrary.Web.IWebContext webContext, AuthenticationLocation config, string loginUrl) { _webContext = webContext; _config = config; _loginUrl = loginUrl; }