コード例 #1
0
 public AuthenticationController(ITotpSetupGenerator totpSetupGenerator, ITotpValidator totpValidator,
                                 ILogger <AuthenticationController> logger, IAccountKeyService accountKeyService)
 {
     _totpSetupGenerator = totpSetupGenerator;
     _totpValidator      = totpValidator;
     _logger             = logger;
     _accountKeyService  = accountKeyService;
 }
コード例 #2
0
 public Totp(ITotpSetupGenerator totpSetupGenerator)
 {
     _totpSetupGenerator = totpSetupGenerator;
     _totpGenerator      = new TotpGenerator();
     _totpValidator      = new TotpValidator(_totpGenerator);
 }