weizhouapache commented on code in PR #6924: URL: https://github.com/apache/cloudstack/pull/6924#discussion_r1049313517
########## server/src/main/java/com/cloud/user/AccountManagerImpl.java: ########## @@ -315,6 +322,31 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M private int _cleanupInterval; private List<String> apiNameList; + protected static Map<String, UserTwoFactorAuthenticator> userTwoFactorAuthenticationProvidersMap = new HashMap<>(); + + private List<UserTwoFactorAuthenticator> userTwoFactorAuthenticationProviders; + + static ConfigKey<Boolean> enableUserTwoFactorAuthentication = new ConfigKey<Boolean>("Advanced", + Boolean.class, + "enable.user.two.factor.authentication", + "false", + "Determines whether two factor authentication is enabled or not. This can also be configured at domain level.", + false, + ConfigKey.Scope.Domain); + + ConfigKey<Boolean> mandateUserTwoFactorAuthentication = new ConfigKey<Boolean>("Advanced", + Boolean.class, + "mandate.user.two.factor.authentication", + "false", + "Determines whether to make the two factor authentication mandatory or not. This can also be configured at domain level.", + false, + ConfigKey.Scope.Domain); + + ConfigKey<String> userTwoFactorAuthenticationDefaultProvider = new ConfigKey<>("Advanced", String.class, + "user.two.factor.authentication.default.provider", + "GOOGLE", + "The default user two factor authentication provider plugin. Eg. google, staticpin", true, ConfigKey.Scope.Domain); Review Comment: great, thanks @harikrishna-patnala -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org