mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
feat: new user auth api (#1168)
* fix: correct selectors for extended writemodel * fix: no previous checks in eventstore * start check previous * feat: auth user commands * feat: auth user commands * feat: auth user commands * feat: otp * feat: corrections from pr merge * feat: webauthn * feat: comment old webauthn * feat: refactor user, human, machine * feat: webauth command side * feat: command and query side in login * feat: fix user writemodel append events * fix: remove creation dates on command side * fix: remove previous sequence * previous sequence * fix: external idps * Update internal/api/grpc/management/user.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * Update internal/v2/command/user_human_email.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: pr changes * fix: phone verification Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -114,7 +114,7 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc DeactivateUser(UserID) returns (UserResponse) {
|
||||
rpc DeactivateUser(UserID) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
put: "/users/{id}/_deactivate"
|
||||
body: "*"
|
||||
@@ -125,7 +125,7 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc ReactivateUser(UserID) returns (UserResponse) {
|
||||
rpc ReactivateUser(UserID) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
put: "/users/{id}/_reactivate"
|
||||
body: "*"
|
||||
@@ -136,7 +136,7 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc LockUser(UserID) returns (UserResponse) {
|
||||
rpc LockUser(UserID) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
put: "/users/{id}/_lock"
|
||||
body: "*"
|
||||
@@ -147,7 +147,7 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc UnlockUser(UserID) returns (UserResponse) {
|
||||
rpc UnlockUser(UserID) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
put: "/users/{id}/_unlock"
|
||||
body: "*"
|
||||
@@ -1741,16 +1741,15 @@ message CreateMachineRequest {
|
||||
message UserResponse {
|
||||
string id = 1;
|
||||
UserState state = 2;
|
||||
google.protobuf.Timestamp creation_date = 3;
|
||||
google.protobuf.Timestamp change_date = 4;
|
||||
uint64 sequence = 5;
|
||||
string user_name = 6;
|
||||
google.protobuf.Timestamp change_date = 3;
|
||||
uint64 sequence = 4;
|
||||
string user_name = 5;
|
||||
|
||||
oneof user {
|
||||
option (validate.required) = true;
|
||||
|
||||
HumanResponse human = 7;
|
||||
MachineResponse machine = 8;
|
||||
HumanResponse human = 6;
|
||||
MachineResponse machine = 7;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1954,8 +1953,7 @@ message UserProfile {
|
||||
string preferred_language = 6;
|
||||
Gender gender = 7;
|
||||
uint64 sequence = 8;
|
||||
google.protobuf.Timestamp creation_date = 9;
|
||||
google.protobuf.Timestamp change_date = 10;
|
||||
google.protobuf.Timestamp change_date = 9;
|
||||
}
|
||||
|
||||
message UserProfileView {
|
||||
@@ -1992,8 +1990,7 @@ message UserEmail {
|
||||
string email = 2;
|
||||
bool is_email_verified = 3;
|
||||
uint64 sequence = 4;
|
||||
google.protobuf.Timestamp creation_date = 5;
|
||||
google.protobuf.Timestamp change_date = 6;
|
||||
google.protobuf.Timestamp change_date = 5;
|
||||
}
|
||||
|
||||
message UserEmailView {
|
||||
@@ -2016,8 +2013,7 @@ message UserPhone {
|
||||
string phone = 2;
|
||||
bool is_phone_verified = 3;
|
||||
uint64 sequence = 5;
|
||||
google.protobuf.Timestamp creation_date = 6;
|
||||
google.protobuf.Timestamp change_date = 7;
|
||||
google.protobuf.Timestamp change_date = 6;
|
||||
}
|
||||
|
||||
message UserPhoneView {
|
||||
@@ -2043,8 +2039,7 @@ message UserAddress {
|
||||
string region = 5;
|
||||
string street_address = 6;
|
||||
uint64 sequence = 7;
|
||||
google.protobuf.Timestamp creation_date = 8;
|
||||
google.protobuf.Timestamp change_date = 9;
|
||||
google.protobuf.Timestamp change_date = 8;
|
||||
}
|
||||
|
||||
message UserAddressView {
|
||||
@@ -2528,7 +2523,6 @@ enum AppState {
|
||||
message Application {
|
||||
string id = 1;
|
||||
AppState state = 2;
|
||||
google.protobuf.Timestamp creation_date = 3;
|
||||
google.protobuf.Timestamp change_date = 4;
|
||||
string name = 5;
|
||||
oneof app_config {
|
||||
|
Reference in New Issue
Block a user