public static void ConfigureTwoFactorAuthenticationPolicy <TAccount>(this UserAccountService <TAccount> svc, ITwoFactorAuthenticationPolicy policy)
     where TAccount : UserAccount
 {
     svc.AddCommandHandler(new TwoFactorAuthPolicyCommandHandler(policy));
 }
コード例 #2
0
 public static void ConfigureTwoFactorAuthenticationCookies <TAccount>(this UserAccountService <TAccount> svc, IDictionary <string, object> env, bool debugging = false)
     where TAccount : UserAccount
 {
     svc.AddCommandHandler(new TwoFactorAuthPolicyCommandHandler(new OwinCookieBasedTwoFactorAuthPolicy(env, debugging)));
 }