zitadel/internal/command
Fabi 1143e3773e
fix: Remove user with cascading memberships (#1811)
* fix: remove usermemberships on user remove

* fix: text user remove with memberships

* fix: translations

* Update internal/iam/repository/eventsourcing/model/types.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* fix: uncomment tests

* fix: remove memberships if user removed

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2021-06-07 07:20:47 +02:00
..
auth_checks.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
command.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
converter.go fix: some backend bugs (#1438) 2021-03-19 18:46:26 +01:00
existing_label_policies_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
features_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
iam_converter.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
iam_features_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
iam_features.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
iam_idp_config_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_idp_config_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_idp_config.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
iam_idp_oidc_config_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_idp_oidc_config_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_idp_oidc_config.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
iam_member_model.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
iam_member_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_member.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
iam_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_policy_label_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
iam_policy_label_test.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
iam_policy_label.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
iam_policy_login_factors_model.go feat: features (#1427) 2021-03-25 17:26:21 +01:00
iam_policy_login_identity_provider_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_policy_login_model.go feat: add hide password reset to login policy (#1806) 2021-06-03 11:53:30 +02:00
iam_policy_login_test.go feat: add hide password reset to login policy (#1806) 2021-06-03 11:53:30 +02:00
iam_policy_login.go feat: add hide password reset to login policy (#1806) 2021-06-03 11:53:30 +02:00
iam_policy_mail_template_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_policy_mail_template_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_policy_mail_template.go feat(notification): new mail templates (#1579) 2021-04-16 14:55:55 +02:00
iam_policy_mail_text_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_policy_mail_text_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_policy_mail_text.go fix: new es testing (#1411) 2021-03-15 12:51:15 +01:00
iam_policy_org_iam_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_policy_org_iam_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_policy_org_iam.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
iam_policy_password_age_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_policy_password_age_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_policy_password_age.go fix: update config to commands (and queries) (#1342) 2021-02-24 11:17:39 +01:00
iam_policy_password_complexity_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_policy_password_complexity_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_policy_password_complexity.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
iam_policy_password_lockout_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
iam_policy_password_lockout_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
iam_policy_password_lockout.go fix: update config to commands (and queries) (#1342) 2021-02-24 11:17:39 +01:00
iam.go fix: todos (#1346) 2021-03-01 08:48:50 +01:00
identity_provider_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
idp_config_model.go fix: todos (#1346) 2021-03-01 08:48:50 +01:00
key_pair_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
key_pair.go fix: update config to commands (and queries) (#1342) 2021-02-24 11:17:39 +01:00
main_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
member_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
oidc_config_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_converter.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_domain_model.go feat: custom domain feature (#1618) 2021-04-19 16:43:36 +02:00
org_domain_test.go fix: uniqueness (#1710) 2021-05-04 09:09:24 +00:00
org_domain.go fix: uniqueness (#1710) 2021-05-04 09:09:24 +00:00
org_features_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
org_features_test.go fix: check if org exists when setting features (#1813) 2021-06-04 15:44:45 +02:00
org_features.go fix: check if org exists when setting features (#1813) 2021-06-04 15:44:45 +02:00
org_idp_config_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_idp_config_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_idp_config.go fix: handle org features downgrades (#1578) 2021-04-12 17:03:09 +02:00
org_idp_oidc_config_model.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
org_idp_oidc_config_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_idp_oidc_config.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
org_member_model.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
org_member_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_member.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
org_model.go fix(org): handle reactivate event in write model (#1596) 2021-04-15 18:15:49 +02:00
org_policy_label_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
org_policy_label_test.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
org_policy_label.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
org_policy_login_factors_model.go fix: handle org features downgrades (#1578) 2021-04-12 17:03:09 +02:00
org_policy_login_identity_provider_model.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
org_policy_login_model.go feat: add hide password reset to login policy (#1806) 2021-06-03 11:53:30 +02:00
org_policy_login_test.go feat: add hide password reset to login policy (#1806) 2021-06-03 11:53:30 +02:00
org_policy_login.go feat: add hide password reset to login policy (#1806) 2021-06-03 11:53:30 +02:00
org_policy_mail_template_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_policy_mail_template_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_policy_mail_template.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
org_policy_mail_text_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_policy_mail_text_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_policy_mail_text.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
org_policy_org_iam_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_policy_org_iam_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_policy_org_iam.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
org_policy_password_age_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_policy_password_age_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_policy_password_age.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
org_policy_password_complexity_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_policy_password_complexity_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_policy_password_complexity.go fix: handle org features downgrades (#1578) 2021-04-12 17:03:09 +02:00
org_policy_password_lockout_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
org_policy_password_lockout_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
org_policy_password_lockout.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
org_test.go fix: uniqueness (#1710) 2021-05-04 09:09:24 +00:00
org.go fix: uniqueness (#1710) 2021-05-04 09:09:24 +00:00
policy_label_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
policy_login_factors_model.go feat: features (#1427) 2021-03-25 17:26:21 +01:00
policy_login_model.go feat: add hide password reset to login policy (#1806) 2021-06-03 11:53:30 +02:00
policy_mail_template_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_mail_text_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_org_iam_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_password_age_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_password_complexity_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_password_lockout_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
project_application_api_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
project_application_api_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
project_application_api.go fix: remove app name check on ChangeAPIApplication (#1561) 2021-04-09 11:50:06 +02:00
project_application_key_model.go fix: es bugs (#1455) 2021-03-23 15:08:49 +01:00
project_application_key_test.go fix: new es testing (#1411) 2021-03-15 12:51:15 +01:00
project_application_key.go fix: new es testing (#1411) 2021-03-15 12:51:15 +01:00
project_application_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
project_application_oidc_model.go feat: add additional origins on applications (#1691) 2021-05-19 09:17:38 +02:00
project_application_oidc_test.go feat: add additional origins on applications (#1691) 2021-05-19 09:17:38 +02:00
project_application_oidc.go feat: add additional origins on applications (#1691) 2021-05-19 09:17:38 +02:00
project_application_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
project_application.go fix: new es testing (#1411) 2021-03-15 12:51:15 +01:00
project_converter.go feat: add additional origins on applications (#1691) 2021-05-19 09:17:38 +02:00
project_grant_member_model.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
project_grant_member_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
project_grant_member.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
project_grant_model.go fix: new es testing (#1411) 2021-03-15 12:51:15 +01:00
project_grant_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
project_grant.go fix: some backend bugs (#1438) 2021-03-19 18:46:26 +01:00
project_member_model.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
project_member_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
project_member.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
project_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
project_role_model.go fix: new es testing (#1411) 2021-03-15 12:51:15 +01:00
project_role_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
project_role.go fix: new es testing (#1411) 2021-03-15 12:51:15 +01:00
project_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
project.go fix: new es testing (#1411) 2021-03-15 12:51:15 +01:00
setup_step1.go fix: uniqueness (#1710) 2021-05-04 09:09:24 +00:00
setup_step2.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
setup_step3.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
setup_step4.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
setup_step5.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
setup_step6.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
setup_step7.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
setup_step8.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
setup_step9.go feat: features (#1427) 2021-03-25 17:26:21 +01:00
setup_step10.go fix: update config to commands (and queries) (#1342) 2021-02-24 11:17:39 +01:00
setup_step11.go fix: update config to commands (and queries) (#1342) 2021-02-24 11:17:39 +01:00
setup_step12.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
setup_step13.go feat(notification): new mail templates (#1579) 2021-04-16 14:55:55 +02:00
setup_step14.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
setup_step15.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
setup.go fix: setup (#1515) 2021-04-01 10:14:07 +02:00
statics.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
unique_constraints_model.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
user_converter.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
user_grant_converter.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
user_grant_model.go fix: user grants (#1645) 2021-04-22 10:03:24 +00:00
user_grant_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_grant.go fix: new es bug fixes (#1477) 2021-03-25 18:12:24 +01:00
user_human_address_model.go fix: add v1 events (#1525) 2021-04-06 09:57:58 +02:00
user_human_address.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
user_human_adress_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_human_avatar_test.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
user_human_avatar.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
user_human_email_model.go fix: add v1 events (#1525) 2021-04-06 09:57:58 +02:00
user_human_email_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_human_email.go fix: backend fixes (#1452) 2021-03-22 15:36:59 +01:00
user_human_externalidp_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
user_human_externalidp_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_human_externalidp.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
user_human_init_model.go fix: add v1 events (#1525) 2021-04-06 09:57:58 +02:00
user_human_init_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_human_init.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
user_human_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
user_human_otp_model.go fix: add v1 events (#1525) 2021-04-06 09:57:58 +02:00
user_human_otp_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_human_otp.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
user_human_password_model.go fix: add v1 events (#1525) 2021-04-06 09:57:58 +02:00
user_human_password_test.go fix: set password in management api (#1766) 2021-06-03 13:28:24 +02:00
user_human_password.go fix: set password in management api (#1766) 2021-06-03 13:28:24 +02:00
user_human_phone_model.go fix: add v1 events (#1525) 2021-04-06 09:57:58 +02:00
user_human_phone_test.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
user_human_phone.go fix: some backend bugs (#1438) 2021-03-19 18:46:26 +01:00
user_human_profile_model.go fix: add v1 events (#1525) 2021-04-06 09:57:58 +02:00
user_human_profile_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_human_profile.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
user_human_refresh_token_model.go feat: refresh token (#1728) 2021-05-20 11:33:35 +00:00
user_human_refresh_token_test.go feat: refresh token (#1728) 2021-05-20 11:33:35 +00:00
user_human_refresh_token.go feat: refresh token (#1728) 2021-05-20 11:33:35 +00:00
user_human_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_human_webauthn_model.go fix: pass necessary webauthn data through events (#1544) 2021-04-07 14:19:01 +02:00
user_human_webauthn.go fix: pass necessary webauthn data through events (#1544) 2021-04-07 14:19:01 +02:00
user_human.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
user_machine_key_model.go fix: todos (#1502) 2021-03-31 11:10:06 +02:00
user_machine_key.go feat: protos refactoring 2021-03-09 10:30:11 +01:00
user_machine_model.go feat: new es testing2 (#1428) 2021-03-19 11:12:56 +01:00
user_machine_test.go feat: asset storage (#1696) 2021-05-03 10:15:50 +02:00
user_machine.go fix: todos (#1502) 2021-03-31 11:10:06 +02:00
user_membership.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
user_model.go fix: add v1 events (#1525) 2021-04-06 09:57:58 +02:00
user_test.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00
user.go fix: Remove user with cascading memberships (#1811) 2021-06-07 07:20:47 +02:00