Skip to content

Commit 672cb3b

Browse files
authored
Revert "fix: Change user MFA requset payload method from unstructured format …" (#598)
This reverts commit 9bac0c5.
1 parent 9bac0c5 commit 672cb3b

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

proto/spaceone/api/identity/v2/user.proto

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ enum UserRequiredAction {
117117
ENFORCE_MFA = 1;
118118
}
119119

120-
enum MFAType {
121-
MFA_TYPE_NONE = 0;
122-
OTP = 1;
123-
EMAIL = 2;
124-
}
125120

126121
message MFA {
127122
enum State {
@@ -131,7 +126,7 @@ message MFA {
131126
}
132127

133128
State state = 1;
134-
MFAType mfa_type = 2;
129+
string mfa_type = 2;
135130
google.protobuf.Struct options = 3;
136131

137132
}
@@ -167,9 +162,9 @@ message CreateUserRequest {
167162
// If reset_password is true, send email
168163
bool reset_password = 9;
169164
// +optional
170-
optional bool enforce_mfa = 10;
165+
MFA mfa = 10;
171166
// +optional
172-
MFAType enforce_mfa_type = 11;
167+
repeated UserRequiredAction required_actions = 11;
173168
}
174169

175170
//{
@@ -199,9 +194,9 @@ message UpdateUserRequest {
199194
// +optional
200195
bool reset_password = 8;
201196
// +optional
202-
optional bool enforce_mfa = 9;
197+
MFA mfa = 9;
203198
// +optional
204-
MFAType enforce_mfa_type = 10;
199+
repeated UserRequiredAction required_actions = 10;
205200
}
206201

207202
//{

0 commit comments

Comments
 (0)