public DataTable GetLocalAccountsInfo() { _localAccounts = new LocalAccountService(_scope, _options); var localAccountsList = _localAccounts.GetAllLocalAccounts(); return(CreateExcelFile.ListToDataTable(localAccountsList, "Local Accounts")); }
public LocalTokenServiceTest(ILogger logger, ILocalTokenService localTokenService, ITokenService tokenService, ILocalAccountService localAccountService) { _logger = logger; _localTokenService = localTokenService; _tokenService = tokenService; _localAccountService = localAccountService; }
public IdentityWebLoginService(ILocalAccountService localAccountService, IIdentityService identityService, IHttpContextAccessor httpContextAccessor, IIdentityAttributeStorage identityAttributeStorage, ILogger <LoginService> logger) : base(localAccountService, identityService, httpContextAccessor, logger) { _identityAttributeStorage = identityAttributeStorage; }
public AdminController(ILogger <AdminController> logger, IOptions <AuthenticationSettings> authSettings, IBlogAudit blogAudit, ILocalAccountService localAccountService) { _blogAudit = blogAudit; _localAccountService = localAccountService; _authenticationSettings = authSettings.Value; _logger = logger; }
public IdentityController(ILoginService loginService, IExternalApplicationService externalApplicationService, IIdentityService identityService, ILocalAccountService localAccountService) { _loginService = loginService; _externalApplicationService = externalApplicationService; _identityService = identityService; _localAccountService = localAccountService; }
public async Task <IActionResult> LocalAccount([FromServices] ILocalAccountService accountService) { var accounts = await accountService.GetAllAsync(); var vm = new AccountManageViewModel { Accounts = accounts }; return(View(vm)); }
public LoginService(ILocalAccountService localAccountService, IIdentityService identityService, IHttpContextAccessor httpContextAccessor, ILogger <LoginService> log) { _localAccountService = localAccountService; _httpContextAccessor = httpContextAccessor; _identityService = identityService; _log = log; }
public SignInModel( IOptions <AuthenticationSettings> authSettings, ILocalAccountService localAccountService, ILogger <SignInModel> logger, IBlogAudit blogAudit, ISessionBasedCaptcha captcha) { _localAccountService = localAccountService; _logger = logger; _blogAudit = blogAudit; _captcha = captcha; _authenticationSettings = authSettings.Value; }
public IdentityService(IIdentityAccessor claimsPrincipalAccessor, IdentityOptions identityOptions, IIdentityStorage identityStorage, ILocalAccountService localAccountService, ILogger <IdentityService> log, IHttpContextAccessor httpContextAccessor) { _claimsPrincipalAccessor = claimsPrincipalAccessor; _identityOptions = identityOptions; _identityStorage = identityStorage; _localAccountService = localAccountService; _httpContextAccessor = httpContextAccessor; _log = log; }
public LoginService(ILocalAccountService localAccountService, IIdentityService identityService, IIdentityAttributeStorage identityAttributeStorage, IUsedTotpLogStorage usedTotpLogStorage, ITwoFactorAuthenticationSessionStorage twoFactorAuthenticationSessionStorage, IHttpContextAccessor httpContextAccessor, RandomStringGenerator randomStringGenerator, ILogger <LoginService> log) { _localAccountService = localAccountService; _identityService = identityService; _identityAttributeStorage = identityAttributeStorage; _usedTotpLogStorage = usedTotpLogStorage; _twoFactorAuthenticationSessionStorage = twoFactorAuthenticationSessionStorage; _httpContextAccessor = httpContextAccessor; _randomStringGenerator = randomStringGenerator; _log = log; }
public IdentityController(ILoginService loginService, IIdentityService identityService, ILocalAccountService localAccountService, AuditLog auditLog, IConfiguration configuration, IIdentityAccessor identityAccessor, ISessionStorage sessionStorage, IWebHostEnvironment env) { _loginService = loginService; _identityService = identityService; _localAccountService = localAccountService; _auditLog = auditLog; _configuration = configuration; _identityAccessor = identityAccessor; _sessionStorage = sessionStorage; _env = env; }
private void btnGetLocalAccounts_Click(object sender, EventArgs e) { try { if (_sysConnector == null) { ShowConnectionErrorMessage(); } else { _localAccounts = new LocalAccountService(_sysConnector.Scope, _sysConnector.Options); listLocalAccounts.DataSource = new BindingList <LocalAccountInfo>(_localAccounts.GetAllLocalAccounts()); listLocalAccounts.DisplayMember = "Name"; listLocalAccounts.ValueMember = "SID"; } } catch (Exception ex) { var message = new MessageWindow("Error", ex); message.ShowDialog(); } }
public LocalAccountController(ILocalAccountService accountService) { _accountService = accountService; }
public LocalAccountModel(ILocalAccountService accountService) { _accountService = accountService; AccountEditModel = new(); }
public LocalAccountServiceTest(ILogger logger, ILocalAccountService localAccountService) { _logger = logger; _localAccountService = localAccountService; }