mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25:24 +00:00
feat: move sso and ldap logins into plugins (C2)
This commit is contained in:
1 parent
5c18435105
commit
925da4a661
223 files changed
+25778
-6820
No files matched your search
@@ -0,0 +1,14 @@
|
||||
-- sso 0001: adopt_sso_providers
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `sso_providers` (
|
||||
`id` int AUTO_INCREMENT PRIMARY KEY,
|
||||
`name` text NOT NULL,
|
||||
`type` text NOT NULL,
|
||||
`enabled` boolean NOT NULL DEFAULT true,
|
||||
`display_order` int NOT NULL DEFAULT 0,
|
||||
`config` text NOT NULL,
|
||||
`created_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
|
||||
`updated_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP)
|
||||
);
|
||||
RENAME TABLE `sso_providers` TO `p_sso_providers`;
|
||||
@@ -0,0 +1,7 @@
|
||||
-- sso 0002: legacy_callback
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
ALTER TABLE `p_sso_providers` ADD COLUMN `legacy_callback` boolean NOT NULL DEFAULT false;
|
||||
-- Providers that existed before 2.9 were registered with the identity
|
||||
-- provider under /users/oidc/callback, so they keep sending that URI.
|
||||
UPDATE `p_sso_providers` SET `legacy_callback` = true;
|
||||
@@ -0,0 +1,14 @@
|
||||
-- sso 0001: adopt_sso_providers
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "sso_providers" (
|
||||
"id" serial PRIMARY KEY,
|
||||
"name" text NOT NULL,
|
||||
"type" text NOT NULL,
|
||||
"enabled" boolean NOT NULL DEFAULT true,
|
||||
"display_order" integer NOT NULL DEFAULT 0,
|
||||
"config" text NOT NULL,
|
||||
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
ALTER TABLE "sso_providers" RENAME TO "p_sso_providers";
|
||||
@@ -0,0 +1,7 @@
|
||||
-- sso 0002: legacy_callback
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
ALTER TABLE "p_sso_providers" ADD COLUMN "legacy_callback" boolean NOT NULL DEFAULT false;
|
||||
-- Providers that existed before 2.9 were registered with the identity
|
||||
-- provider under /users/oidc/callback, so they keep sending that URI.
|
||||
UPDATE "p_sso_providers" SET "legacy_callback" = true;
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"version": 1,
|
||||
"tables": {
|
||||
"providers": {
|
||||
"columns": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"primaryKey": true,
|
||||
"notNull": true
|
||||
},
|
||||
"name": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
},
|
||||
"type": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
},
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"notNull": true,
|
||||
"defaultValue": true
|
||||
},
|
||||
"displayOrder": {
|
||||
"type": "integer",
|
||||
"notNull": true,
|
||||
"defaultValue": 0
|
||||
},
|
||||
"config": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "timestamp",
|
||||
"notNull": true,
|
||||
"defaultNow": true
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "timestamp",
|
||||
"notNull": true,
|
||||
"defaultNow": true
|
||||
},
|
||||
"legacyCallback": {
|
||||
"type": "boolean",
|
||||
"notNull": true,
|
||||
"defaultValue": false
|
||||
}
|
||||
},
|
||||
"indexes": [],
|
||||
"adopts": "sso_providers"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
-- sso 0001: adopt_sso_providers
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "sso_providers" (
|
||||
"id" integer PRIMARY KEY AUTOINCREMENT,
|
||||
"name" text NOT NULL,
|
||||
"type" text NOT NULL,
|
||||
"enabled" integer NOT NULL DEFAULT 1,
|
||||
"display_order" integer NOT NULL DEFAULT 0,
|
||||
"config" text NOT NULL,
|
||||
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
ALTER TABLE "sso_providers" RENAME TO "p_sso_providers";
|
||||
@@ -0,0 +1,7 @@
|
||||
-- sso 0002: legacy_callback
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
ALTER TABLE "p_sso_providers" ADD COLUMN "legacy_callback" integer NOT NULL DEFAULT 0;
|
||||
-- Providers that existed before 2.9 were registered with the identity
|
||||
-- provider under /users/oidc/callback, so they keep sending that URI.
|
||||
UPDATE "p_sso_providers" SET "legacy_callback" = 1;
|
||||
Reference in new issue
Block a user