mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 18:59:06 +00:00
fix: cors (#621)
* 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 * check origin on userinfo * update oidc pkg
This commit is contained in:
15
migrations/cockroach/V1.6__origin_allow_list.sql
Normal file
15
migrations/cockroach/V1.6__origin_allow_list.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE management.applications ADD COLUMN origin_allow_list TEXT ARRAY;
|
||||
ALTER TABLE auth.applications ADD COLUMN origin_allow_list TEXT ARRAY;
|
||||
ALTER TABLE authz.applications ADD COLUMN origin_allow_list TEXT ARRAY;
|
||||
|
||||
TRUNCATE TABLE management.applications;
|
||||
TRUNCATE TABLE auth.applications;
|
||||
TRUNCATE TABLE authz.applications;
|
||||
|
||||
UPDATE management.current_sequences set current_sequence = 0 where view_name = 'management.applications';
|
||||
UPDATE auth.current_sequences set current_sequence = 0 where view_name = 'auth.applications';
|
||||
UPDATE authz.current_sequences set current_sequence = 0 where view_name = 'authz.applications';
|
||||
|
||||
COMMIT;
|
Reference in New Issue
Block a user