mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-24 13:48:45 +00:00
feat: add domain verification notification (#649)
* fix: dont (re)generate client secret with auth type none * fix(cors): allow Origin from request * feat: add origin allow list and fix some core issues * rename migration * fix UserIDsByDomain * feat: send email to users after domain claim * username * check origin on userinfo * update oidc pkg * fix: add migration 1.6 * change username * change username * remove unique email aggregate * change username in mgmt * search global user by login name * fix test * change user search in angular * fix tests * merge * userview in angular * fix merge * Update pkg/grpc/management/proto/management.proto Co-authored-by: Fabi <[email protected]> * Update internal/notification/static/i18n/de.yaml Co-authored-by: Fabi <[email protected]> * fix Co-authored-by: Fabi <[email protected]>
This commit is contained in:
@@ -81,14 +81,14 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
// GetUserByEmailGlobal returns User, global search is overall organisations
|
||||
rpc GetUserByEmailGlobal(Email) returns (UserView) {
|
||||
// GetUserByLoginNameGlobal returns User, global search is overall organisations
|
||||
rpc GetUserByLoginNameGlobal(LoginName) returns (UserView) {
|
||||
option (google.api.http) = {
|
||||
get: "/global/users/_byemail"
|
||||
get: "/global/users/_byloginname"
|
||||
};
|
||||
|
||||
option (caos.zitadel.utils.v1.auth_option) = {
|
||||
permission: "user.read"
|
||||
permission: "user.global.read"
|
||||
};
|
||||
}
|
||||
|
||||
@@ -254,6 +254,16 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc ChangeUserUserName(UpdateUserUserNameRequest) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
get: "/users/{id}/username"
|
||||
};
|
||||
|
||||
option (caos.zitadel.utils.v1.auth_option) = {
|
||||
permission: "user.write"
|
||||
};
|
||||
}
|
||||
|
||||
rpc ChangeUserEmail(UpdateUserEmailRequest) returns (UserEmail) {
|
||||
option (google.api.http) = {
|
||||
put: "/users/{id}/email"
|
||||
@@ -1459,8 +1469,8 @@ message UserID {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message Email {
|
||||
string email = 1;
|
||||
message LoginName {
|
||||
string login_name = 1;
|
||||
}
|
||||
|
||||
message UniqueUserRequest {
|
||||
@@ -1648,6 +1658,11 @@ message UpdateUserProfileRequest {
|
||||
Gender gender = 6;
|
||||
}
|
||||
|
||||
message UpdateUserUserNameRequest {
|
||||
string id = 1;
|
||||
string user_name = 2 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
}
|
||||
|
||||
message UserEmail {
|
||||
string id = 1;
|
||||
string email = 2;
|
||||
|
||||
Reference in New Issue
Block a user