Skip to content
Closed
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
16 changes: 15 additions & 1 deletion proto/spaceone/api/identity/v2/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,14 @@ enum AuthType {

enum UserRequiredAction {
UPDATE_PASSWORD = 0;
ENFORCE_MFA = 1;
}

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

message MFA {
enum State {
Expand All @@ -125,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 @@ -160,6 +166,10 @@ message CreateUserRequest {
google.protobuf.Struct tags = 8;
// If reset_password is true, send email
bool reset_password = 9;
// +optional
optional bool enforce_mfa = 10;
// +optional
MFAType enforce_mfa_type = 11;
}

//{
Expand Down Expand Up @@ -188,6 +198,10 @@ message UpdateUserRequest {
google.protobuf.Struct tags = 7;
// +optional
bool reset_password = 8;
// +optional
optional bool enforce_mfa = 9;
// +optional
MFAType enforce_mfa_type = 10;
}

//{
Expand Down
Loading