zitadel/migrations/cockroach/V1.21__mfa_policy.sql
Fabi 202aae4954
feat: mfa policy (#913)
* feat: add mfa to login policy

* feat: add mfa to login policy

* feat: add mfa to login policy

* feat: add mfa to login policy

* feat: add mfa to login policy on org

* feat: add mfa to login policy on org

* feat: append events on policy views

* feat: iam login policy mfa definition

* feat: login policies on orgs

* feat: configured mfas in login process

* feat: configured mfas in login process

* Update internal/ui/login/static/i18n/en.yaml

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

* fix: rename software and hardware mfas

* fix: pr requests

* fix user mfa

* fix: test

* fix: oidc version

* fix: oidc version

* fix: proto gen

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
Co-authored-by: Max Peintner <max@caos.ch>
2020-11-04 11:26:10 +01:00

22 lines
1.1 KiB
SQL

ALTER TABLE management.login_policies ADD COLUMN force_mfa BOOLEAN;
ALTER TABLE adminapi.login_policies ADD COLUMN force_mfa BOOLEAN;
ALTER TABLE auth.login_policies ADD COLUMN force_mfa BOOLEAN;
ALTER TABLE management.login_policies ADD COLUMN second_factors SMALLINT ARRAY;
ALTER TABLE adminapi.login_policies ADD COLUMN second_factors SMALLINT ARRAY;
ALTER TABLE auth.login_policies ADD COLUMN second_factors SMALLINT ARRAY;
ALTER TABLE management.login_policies ADD COLUMN multi_factors SMALLINT ARRAY;
ALTER TABLE adminapi.login_policies ADD COLUMN multi_factors SMALLINT ARRAY;
ALTER TABLE auth.login_policies ADD COLUMN multi_factors SMALLINT ARRAY;
ALTER TABLE auth.user_sessions RENAME COLUMN mfa_software_verification TO second_factor_verification;
ALTER TABLE auth.user_sessions RENAME COLUMN mfa_software_verification_type TO second_factor_verification_type;
ALTER TABLE auth.user_sessions RENAME COLUMN mfa_hardware_verification TO multi_factor_verification;
ALTER TABLE auth.user_sessions RENAME COLUMN mfa_hardware_verification_type TO multi_factor_verification_type;