mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
a321d850ae
* fix logging * token verification * feat: assert roles * feat: add project role assertion on project and token type on app * id and access token role assertion * add project role check * user grant required step in login * update library * fix merge * fix merge * fix merge * update oidc library * fix tests * add tests for GrantRequiredStep * add missing field ProjectRoleCheck on project view model * fix project create * fix project create
40 lines
1.7 KiB
SQL
40 lines
1.7 KiB
SQL
CREATE TABLE auth.project_roles (
|
|
project_id TEXT,
|
|
role_key TEXT,
|
|
display_name TEXT,
|
|
resource_owner TEXT,
|
|
org_id TEXT,
|
|
group_name TEXT,
|
|
|
|
creation_date TIMESTAMPTZ,
|
|
sequence BIGINT,
|
|
|
|
PRIMARY KEY (org_id, project_id, role_key)
|
|
);
|
|
|
|
ALTER TABLE authz.user_grants ADD COLUMN org_primary_domain TEXT;
|
|
ALTER TABLE auth.user_grants ADD COLUMN org_primary_domain TEXT;
|
|
ALTER TABLE management.user_grants ADD COLUMN org_primary_domain TEXT;
|
|
|
|
ALTER TABLE authz.applications ADD COLUMN access_token_type SMALLINT;
|
|
ALTER TABLE auth.applications ADD COLUMN access_token_type SMALLINT;
|
|
ALTER TABLE management.applications ADD COLUMN access_token_type SMALLINT;
|
|
|
|
ALTER TABLE management.projects ADD COLUMN project_role_assertion BOOLEAN;
|
|
ALTER TABLE management.projects ADD COLUMN project_role_check BOOLEAN;
|
|
|
|
ALTER TABLE authz.applications ADD COLUMN project_role_assertion BOOLEAN;
|
|
ALTER TABLE auth.applications ADD COLUMN project_role_assertion BOOLEAN;
|
|
ALTER TABLE management.applications ADD COLUMN project_role_assertion BOOLEAN;
|
|
|
|
ALTER TABLE authz.applications ADD COLUMN project_role_check BOOLEAN;
|
|
ALTER TABLE auth.applications ADD COLUMN project_role_check BOOLEAN;
|
|
ALTER TABLE management.applications ADD COLUMN project_role_check BOOLEAN;
|
|
|
|
ALTER TABLE authz.applications ADD COLUMN access_token_role_assertion BOOLEAN;
|
|
ALTER TABLE auth.applications ADD COLUMN access_token_role_assertion BOOLEAN;
|
|
ALTER TABLE management.applications ADD COLUMN access_token_role_assertion BOOLEAN;
|
|
|
|
ALTER TABLE authz.applications ADD COLUMN id_token_role_assertion BOOLEAN;
|
|
ALTER TABLE auth.applications ADD COLUMN id_token_role_assertion BOOLEAN;
|
|
ALTER TABLE management.applications ADD COLUMN id_token_role_assertion BOOLEAN; |