From 0faac01bb7c247e3b5a28c977f585d8f5b1449d1 Mon Sep 17 00:00:00 2001 From: EightMonth Date: Thu, 4 Jan 2024 11:15:15 +0800 Subject: [PATCH] =?UTF-8?q?sas=E5=8D=87=E7=BA=A7=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/增量SQL/sas升级脚本.sql | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 db/增量SQL/sas升级脚本.sql diff --git a/db/增量SQL/sas升级脚本.sql b/db/增量SQL/sas升级脚本.sql new file mode 100644 index 000000000..d0e295257 --- /dev/null +++ b/db/增量SQL/sas升级脚本.sql @@ -0,0 +1,45 @@ +CREATE TABLE `oauth2_registered_client` ( + `id` varchar(100) NOT NULL, + `client_id` varchar(100) NOT NULL, + `client_id_issued_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + `client_secret` varchar(200) DEFAULT NULL, + `client_secret_expires_at` timestamp NULL DEFAULT NULL, + `client_name` varchar(200) NOT NULL, + `client_authentication_methods` varchar(1000) NOT NULL, + `authorization_grant_types` varchar(1000) NOT NULL, + `redirect_uris` varchar(1000) DEFAULT NULL, + `post_logout_redirect_uris` varchar(1000) DEFAULT NULL, + `scopes` varchar(1000) NOT NULL, + `client_settings` varchar(2000) NOT NULL, + `token_settings` varchar(2000) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +INSERT INTO `oauth2_registered_client` +(`id`, +`client_id`, +`client_id_issued_at`, +`client_secret`, +`client_secret_expires_at`, +`client_name`, +`client_authentication_methods`, +`authorization_grant_types`, +`redirect_uris`, +`post_logout_redirect_uris`, +`scopes`, +`client_settings`, +`token_settings`) +VALUES +('3eacac0e-0de9-4727-9a64-6bdd4be2ee1f', +'jeecg-client', +now(), +'secret', +null, +'3eacac0e-0de9-4727-9a64-6bdd4be2ee1f', +'client_secret_basic', +'refresh_token,authorization_code,password', +'http://127.0.0.1:8080/jeecg-', +'http://127.0.0.1:8080/', +'*', +'{"@class":"java.util.Collections$UnmodifiableMap","settings.client.require-proof-key":false,"settings.client.require-authorization-consent":true}', +'{"@class":"java.util.Collections$UnmodifiableMap","settings.token.reuse-refresh-tokens":true,"settings.token.id-token-signature-algorithm":["org.springframework.security.oauth2.jose.jws.SignatureAlgorithm","RS256"],"settings.token.access-token-time-to-live":["java.time.Duration",300000.000000000],"settings.token.access-token-format":{"@class":"org.springframework.security.oauth2.server.authorization.settings.OAuth2TokenFormat","value":"self-contained"},"settings.token.refresh-token-time-to-live":["java.time.Duration",3600.000000000],"settings.token.authorization-code-time-to-live":["java.time.Duration",300000.000000000],"settings.token.device-code-time-to-live":["java.time.Duration",300000.000000000]}');