@@ -7,6 +7,65 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77
88## [ Unreleased]
99
10+ ## [ 9.3.0]
11+
12+ - Adds SAML support
13+
14+ ### Migration
15+
16+ ``` sql
17+ CREATE TABLE IF NOT EXISTS saml_clients (
18+ app_id VARCHAR (64 ) NOT NULL DEFAULT ' public' ,
19+ tenant_id VARCHAR (64 ) NOT NULL DEFAULT ' public' ,
20+ client_id VARCHAR (256 ) NOT NULL ,
21+ client_secret TEXT ,
22+ sso_login_url TEXT NOT NULL ,
23+ redirect_uris TEXT NOT NULL ,
24+ default_redirect_uri TEXT NOT NULL ,
25+ idp_entity_id VARCHAR (256 ) NOT NULL ,
26+ idp_signing_certificate TEXT NOT NULL ,
27+ allow_idp_initiated_login BOOLEAN NOT NULL DEFAULT FALSE,
28+ enable_request_signing BOOLEAN NOT NULL DEFAULT FALSE,
29+ created_at BIGINT NOT NULL ,
30+ updated_at BIGINT NOT NULL ,
31+ CONSTRAINT saml_clients_pkey PRIMARY KEY (app_id, tenant_id, client_id),
32+ CONSTRAINT saml_clients_idp_entity_id_key UNIQUE (app_id, tenant_id, idp_entity_id),
33+ CONSTRAINT saml_clients_app_id_fkey FOREIGN KEY (app_id) REFERENCES apps (app_id) ON DELETE CASCADE ,
34+ CONSTRAINT saml_clients_tenant_id_fkey FOREIGN KEY (app_id, tenant_id) REFERENCES tenants (app_id, tenant_id) ON DELETE CASCADE
35+ );
36+
37+ CREATE INDEX IF NOT EXISTS saml_clients_app_id_tenant_id_index ON saml_clients (app_id, tenant_id);
38+
39+ CREATE TABLE IF NOT EXISTS saml_relay_state (
40+ app_id VARCHAR (64 ) NOT NULL DEFAULT ' public' ,
41+ tenant_id VARCHAR (64 ) NOT NULL DEFAULT ' public' ,
42+ relay_state VARCHAR (256 ) NOT NULL ,
43+ client_id VARCHAR (256 ) NOT NULL ,
44+ state TEXT NOT NULL ,
45+ redirect_uri TEXT NOT NULL ,
46+ created_at BIGINT NOT NULL ,
47+ CONSTRAINT saml_relay_state_pkey PRIMARY KEY (app_id, tenant_id, relay_state),
48+ CONSTRAINT saml_relay_state_app_id_fkey FOREIGN KEY (app_id) REFERENCES apps (app_id) ON DELETE CASCADE ,
49+ CONSTRAINT saml_relay_state_tenant_id_fkey FOREIGN KEY (app_id, tenant_id) REFERENCES tenants (app_id, tenant_id) ON DELETE CASCADE
50+ );
51+
52+ CREATE INDEX IF NOT EXISTS saml_relay_state_app_id_tenant_id_index ON saml_relay_state (app_id, tenant_id);
53+
54+ CREATE TABLE IF NOT EXISTS saml_claims (
55+ app_id VARCHAR (64 ) NOT NULL DEFAULT ' public' ,
56+ tenant_id VARCHAR (64 ) NOT NULL DEFAULT ' public' ,
57+ client_id VARCHAR (256 ) NOT NULL ,
58+ code VARCHAR (256 ) NOT NULL ,
59+ claims TEXT NOT NULL ,
60+ created_at BIGINT NOT NULL ,
61+ CONSTRAINT saml_claims_pkey PRIMARY KEY (app_id, tenant_id, code),
62+ CONSTRAINT saml_claims_app_id_fkey FOREIGN KEY (app_id) REFERENCES apps (app_id) ON DELETE CASCADE ,
63+ CONSTRAINT saml_claims_tenant_id_fkey FOREIGN KEY (app_id, tenant_id) REFERENCES tenants (app_id, tenant_id) ON DELETE CASCADE
64+ );
65+
66+ CREATE INDEX IF NOT EXISTS saml_claims_app_id_tenant_id_index ON saml_claims (app_id, tenant_id);
67+ ```
68+
1069## [ 9.2.0]
1170
1271- Adds docker support for opentelemetry javaagent
0 commit comments