onetimepwd

This commit is contained in:
MaxKey
2021-02-16 08:47:16 +08:00
parent 74d96c2d44
commit 99a4fd879c
33 changed files with 63 additions and 61 deletions

View File

@@ -27,18 +27,18 @@ import org.maxkey.authn.realm.activedirectory.ActiveDirectoryAuthenticationRealm
import org.maxkey.authn.realm.activedirectory.ActiveDirectoryServer;
import org.maxkey.authn.support.kerberos.KerberosProxy;
import org.maxkey.authn.support.kerberos.RemoteKerberosService;
import org.maxkey.authn.support.onetimepwd.AbstractOtpAuthn;
import org.maxkey.authn.support.onetimepwd.algorithm.KeyUriFormat;
import org.maxkey.authn.support.onetimepwd.impl.MailOtpAuthn;
import org.maxkey.authn.support.onetimepwd.impl.SmsOtpAuthn;
import org.maxkey.authn.support.onetimepwd.impl.TimeBasedOtpAuthn;
import org.maxkey.authn.support.onetimepwd.impl.sms.SmsOtpAuthnAliyun;
import org.maxkey.authn.support.onetimepwd.impl.sms.SmsOtpAuthnTencentCloud;
import org.maxkey.authn.support.onetimepwd.impl.sms.SmsOtpAuthnYunxin;
import org.maxkey.authn.support.onetimepwd.token.RedisOtpTokenStore;
import org.maxkey.authn.support.rememberme.AbstractRemeberMeService;
import org.maxkey.constants.ConstantsPersistence;
import org.maxkey.constants.ConstantsProperties;
import org.maxkey.crypto.password.otp.AbstractOtpAuthn;
import org.maxkey.crypto.password.otp.algorithm.KeyUriFormat;
import org.maxkey.crypto.password.otp.impl.MailOtpAuthn;
import org.maxkey.crypto.password.otp.impl.SmsOtpAuthn;
import org.maxkey.crypto.password.otp.impl.TimeBasedOtpAuthn;
import org.maxkey.crypto.password.otp.impl.sms.SmsOtpAuthnAliyun;
import org.maxkey.crypto.password.otp.impl.sms.SmsOtpAuthnTencentCloud;
import org.maxkey.crypto.password.otp.impl.sms.SmsOtpAuthnYunxin;
import org.maxkey.crypto.password.otp.token.RedisOtpTokenStore;
import org.maxkey.persistence.db.LoginHistoryService;
import org.maxkey.persistence.db.LoginService;
import org.maxkey.persistence.db.PasswordPolicyValidator;

View File

@@ -20,7 +20,7 @@ package org.maxkey.web.contorller;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.maxkey.crypto.password.otp.AbstractOtpAuthn;
import org.maxkey.authn.support.onetimepwd.AbstractOtpAuthn;
import org.maxkey.domain.UserInfo;
import org.maxkey.persistence.service.UserInfoService;
import org.maxkey.web.WebConstants;

View File

@@ -20,10 +20,10 @@ package org.maxkey.web.contorller;
import java.awt.image.BufferedImage;
import java.util.UUID;
import org.apache.commons.codec.binary.Hex;
import org.maxkey.authn.support.onetimepwd.algorithm.KeyUriFormat;
import org.maxkey.authn.support.onetimepwd.algorithm.OtpSecret;
import org.maxkey.crypto.Base32Utils;
import org.maxkey.crypto.password.PasswordReciprocal;
import org.maxkey.crypto.password.otp.algorithm.KeyUriFormat;
import org.maxkey.crypto.password.otp.algorithm.OtpSecret;
import org.maxkey.domain.UserInfo;
import org.maxkey.persistence.service.UserInfoService;
import org.maxkey.util.RQCodeUtils;

View File

@@ -27,12 +27,12 @@ import javax.servlet.http.HttpServletResponse;
import org.maxkey.authn.AbstractAuthenticationProvider;
import org.maxkey.authn.LoginCredential;
import org.maxkey.authn.support.kerberos.KerberosService;
import org.maxkey.authn.support.onetimepwd.AbstractOtpAuthn;
import org.maxkey.authn.support.rememberme.AbstractRemeberMeService;
import org.maxkey.authn.support.socialsignon.service.SocialSignOnProviderService;
import org.maxkey.authn.support.wsfederation.WsFederationConstants;
import org.maxkey.configuration.ApplicationConfig;
import org.maxkey.constants.ConstantsStatus;
import org.maxkey.crypto.password.otp.AbstractOtpAuthn;
import org.maxkey.domain.UserInfo;
import org.maxkey.persistence.service.UserInfoService;
import org.maxkey.util.StringUtils;