From 351596f6d32e5a25d8b85f5c459bc3cf2d4a006c Mon Sep 17 00:00:00 2001 From: daeyeon ko Date: Tue, 22 Jul 2025 14:56:24 +0900 Subject: [PATCH] fix: Change user MFA requset payload method from unstructured format to flag Signed-off-by: daeyeonko --- proto/spaceone/api/identity/v2/user.proto | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/proto/spaceone/api/identity/v2/user.proto b/proto/spaceone/api/identity/v2/user.proto index 27eaf754..82e9f10f 100644 --- a/proto/spaceone/api/identity/v2/user.proto +++ b/proto/spaceone/api/identity/v2/user.proto @@ -117,6 +117,11 @@ enum UserRequiredAction { ENFORCE_MFA = 1; } +enum MFAType { + MFA_TYPE_NONE = 0; + OTP = 1; + EMAIL = 2; +} message MFA { enum State { @@ -126,7 +131,7 @@ message MFA { } State state = 1; - string mfa_type = 2; + MFAType mfa_type = 2; google.protobuf.Struct options = 3; } @@ -162,9 +167,9 @@ message CreateUserRequest { // If reset_password is true, send email bool reset_password = 9; // +optional - MFA mfa = 10; + optional bool enforce_mfa = 10; // +optional - repeated UserRequiredAction required_actions = 11; + MFAType enforce_mfa_type = 11; } //{ @@ -194,9 +199,9 @@ message UpdateUserRequest { // +optional bool reset_password = 8; // +optional - MFA mfa = 9; + optional bool enforce_mfa = 9; // +optional - repeated UserRequiredAction required_actions = 10; + MFAType enforce_mfa_type = 10; } //{