feat: 增加系统设置(安全)控制第三方认证用户是否进行MFA认证

This commit is contained in:
Michael Bai
2022-02-08 17:33:18 +08:00
committed by 老广
parent 6adeafd1d2
commit 8085db7acc
6 changed files with 63 additions and 46 deletions

View File

@@ -42,6 +42,11 @@ class SecurityAuthSerializer(serializers.Serializer):
),
required=False, label=_("Global MFA auth")
)
SECURITY_MFA_AUTH_ENABLED_FOR_THIRD_PARTY = serializers.BooleanField(
required=False, default=True,
label=_('Third-party login users perform MFA authentication'),
help_text=_('The third-party login modes include OIDC, CAS, and SAML2'),
)
SECURITY_LOGIN_LIMIT_COUNT = serializers.IntegerField(
min_value=3, max_value=99999,
label=_('Limit the number of user login failures')