public static void ConfigureTwoFactorAuthenticationPolicy <TAccount>(this UserAccountService <TAccount> svc, ITwoFactorAuthenticationPolicy policy) where TAccount : UserAccount { svc.AddCommandHandler(new TwoFactorAuthPolicyCommandHandler(policy)); }
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))); }