mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:07:31 +00:00
feat: enable otp email and sms (#6260)
* feat: enable otp email and sms * feat: enable otp factors in login settings * remove tests without value * translate second factors * don't add new factors yet * add comment * add factors to docs * backward compatible settings api * compile tests * add available 2fa types * test: add mapping tests --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
@@ -248,8 +248,11 @@ message LoginPolicy {
|
||||
|
||||
enum SecondFactorType {
|
||||
SECOND_FACTOR_TYPE_UNSPECIFIED = 0;
|
||||
// SECOND_FACTOR_TYPE_OTP is the type for TOTP
|
||||
SECOND_FACTOR_TYPE_OTP = 1;
|
||||
SECOND_FACTOR_TYPE_U2F = 2;
|
||||
SECOND_FACTOR_TYPE_OTP_EMAIL = 3;
|
||||
SECOND_FACTOR_TYPE_OTP_SMS = 4;
|
||||
}
|
||||
|
||||
enum MultiFactorType {
|
||||
|
@@ -113,8 +113,11 @@ message LoginSettings {
|
||||
|
||||
enum SecondFactorType {
|
||||
SECOND_FACTOR_TYPE_UNSPECIFIED = 0;
|
||||
// This is the type for TOTP
|
||||
SECOND_FACTOR_TYPE_OTP = 1;
|
||||
SECOND_FACTOR_TYPE_U2F = 2;
|
||||
SECOND_FACTOR_TYPE_OTP_EMAIL = 3;
|
||||
SECOND_FACTOR_TYPE_OTP_SMS = 4;
|
||||
}
|
||||
|
||||
enum MultiFactorType {
|
||||
|
Reference in New Issue
Block a user