Ejemplo n.º 1
0
 public DoorRequestController(IDoorRequestService doorRequestService, ITotpValidator totpValidator,
                              IAccountKeyService accountKeyService)
 {
     _doorRequestService = doorRequestService;
     _totpValidator      = totpValidator;
     _accountKeyService  = accountKeyService;
 }
 public AuthenticationController(ITotpSetupGenerator totpSetupGenerator, ITotpValidator totpValidator,
                                 ILogger <AuthenticationController> logger, IAccountKeyService accountKeyService)
 {
     _totpSetupGenerator = totpSetupGenerator;
     _totpValidator      = totpValidator;
     _logger             = logger;
     _accountKeyService  = accountKeyService;
 }
 public AccountController(UserManager <User> userManager,
                          SignInManager <User> signInManager,
                          ILogger <AccountController> logger,
                          IEmailService emailService,
                          ApplicationDbContext dbContext,
                          IConfiguration configuration,
                          RoleManager <IdentityRole> roleManager)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.logger        = logger;
     this.emailService  = emailService;
     this.dbContext     = dbContext;
     this.configuration = configuration;
     this.totpGenerator = new TotpGenerator();
     this.totpValidator = new TotpValidator(this.totpGenerator);
     this.roleManager   = roleManager;
 }
Ejemplo n.º 4
0
 public Totp(ITotpSetupGenerator totpSetupGenerator)
 {
     _totpSetupGenerator = totpSetupGenerator;
     _totpGenerator      = new TotpGenerator();
     _totpValidator      = new TotpValidator(_totpGenerator);
 }
 public TotpValidatorTests()
 {
     this.totpGenerator = new TotpGenerator();
     this.totpValidator = new TotpValidator(this.totpGenerator);
 }