Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions proto/spaceone/api/identity/v2/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ enum UserRequiredAction {
ENFORCE_MFA = 1;
}

enum MFAType {
MFA_TYPE_NONE = 0;
OTP = 1;
EMAIL = 2;
}

message MFA {
enum State {
Expand All @@ -126,7 +131,7 @@ message MFA {
}

State state = 1;
string mfa_type = 2;
MFAType mfa_type = 2;
google.protobuf.Struct options = 3;

}
Expand Down Expand Up @@ -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;
}

//{
Expand Down Expand Up @@ -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;
}

//{
Expand Down
Loading