From 4a405805520d06e733b9981ccdf2aabf3a2582a3 Mon Sep 17 00:00:00 2001 From: zlt2000 Date: Wed, 13 Dec 2023 23:52:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 34 ++--------------------- zlt-doc/sql/oauth-center.sql | 4 +-- zlt-doc/版本升级_sql/旧版本升级v6.0.0.sql | 5 +++- 3 files changed, 8 insertions(+), 35 deletions(-) diff --git a/pom.xml b/pom.xml index 55401b69..bacd826f 100644 --- a/pom.xml +++ b/pom.xml @@ -17,14 +17,12 @@ 3.1.6 2022.0.4 4.4 - 2.0.1 0.9.1 1.2.18 1.14 3.1.0 - 2.3.8.RELEASE 1.1.0.RELEASE - 3.24.3 + 3.25.0 3.5.4.1 3.8.1 7.2.28 @@ -35,10 +33,9 @@ 2.7 1.27.2 1.21 - 2.14.3 + 2.14.4 1.0.2 1.9.4 - 1.1.6.RELEASE 2.7 4.2.3 7.13.4 @@ -188,12 +185,6 @@ mybatis-plus ${mybatis-plus-boot-starter.version} - - - org.springframework.security.oauth - spring-security-oauth2 - ${security-oauth2.version} - org.springframework.security spring-security-jwt @@ -205,12 +196,6 @@ redisson-spring-boot-starter ${redisson-starter.version} - - - com.github.zlt2000 - swagger-butler-core - ${swagger.butler.version} - com.aliyun.oss @@ -284,11 +269,6 @@ banner ${banner.version} - - org.springframework.social - spring-social-security - ${spring-social-security.version} - commons-io commons-io @@ -319,16 +299,6 @@ elasticsearch ${elasticsearch.version} - - com.github.xiaoymin - knife4j-spring-boot-starter - ${knife4j.version} - - - com.github.xiaoymin - knife4j-micro-spring-boot-starter - ${knife4j.version} - org.hibernate hibernate-validator diff --git a/zlt-doc/sql/oauth-center.sql b/zlt-doc/sql/oauth-center.sql index 7c2b5973..a5715580 100644 --- a/zlt-doc/sql/oauth-center.sql +++ b/zlt-doc/sql/oauth-center.sql @@ -30,6 +30,6 @@ CREATE TABLE `oauth_client_details` ( -- ---------------------------- -- Records of oauth_client_details -- ---------------------------- -INSERT INTO `oauth_client_details` VALUES (1, 'webApp', NULL, '$2a$10$06msMGYRH8nrm4iVnKFNKOoddB8wOwymVhbUzw/d3ZixD7Nq8ot72', 'webApp', 'app', 'authorization_code,password,refresh_token,client_credentials,implicit,password_code,openId,mobile_password', 'http://127.0.0.1:8082/callback.html', NULL, 3600, NULL, '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8082/logoutNotify"}', 'true', NULL, NULL, 'pc端', 'reference', 1); +INSERT INTO `oauth_client_details` VALUES (1, 'webApp', NULL, '$2a$10$06msMGYRH8nrm4iVnKFNKOoddB8wOwymVhbUzw/d3ZixD7Nq8ot72', 'webApp', 'app,openid,profile', 'authorization_code,password,refresh_token,client_credentials,implicit,password_code,openId,mobile_password', 'http://127.0.0.1:8082/callback.html', NULL, 3600, NULL, '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8082/logoutNotify"}', 'true', NULL, NULL, 'pc端', 'reference', 1); INSERT INTO `oauth_client_details` VALUES (2, 'app', NULL, '$2a$10$i3F515wEDiB4Gvj9ym9Prui0dasRttEUQ9ink4Wpgb4zEDCAlV8zO', 'app', 'app', 'authorization_code,password,refresh_token', 'http://127.0.0.1:8081/callback.html', NULL, 3600, NULL, '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8081/logoutNotify"}', 'true', NULL, NULL, '移动端', 'reference', 1); -INSERT INTO `oauth_client_details` VALUES (3, 'zlt', NULL, '$2a$10$/o.wuORzVcXaezmYVzwYMuoY7qeWXBALwQmkskXD/7C6rqfCyPrna', 'zlt', 'all', 'authorization_code,password,refresh_token,client_credentials', 'http://127.0.0.1:8080/singleLogin', NULL, 3600, 28800, '{}', 'true', '2018-12-27 00:50:30', '2018-12-27 00:50:30', '第三方应用', 'reference', 1); \ No newline at end of file +INSERT INTO `oauth_client_details` VALUES (3, 'zlt', NULL, '$2a$10$/o.wuORzVcXaezmYVzwYMuoY7qeWXBALwQmkskXD/7C6rqfCyPrna', 'zlt', 'all,openid,profile', 'authorization_code,password,refresh_token,client_credentials', 'http://127.0.0.1:8080/singleLogin', NULL, 3600, 28800, '{}', 'true', '2018-12-27 00:50:30', '2018-12-27 00:50:30', '第三方应用', 'reference', 1); \ No newline at end of file diff --git a/zlt-doc/版本升级_sql/旧版本升级v6.0.0.sql b/zlt-doc/版本升级_sql/旧版本升级v6.0.0.sql index 21d830c5..b442782a 100644 --- a/zlt-doc/版本升级_sql/旧版本升级v6.0.0.sql +++ b/zlt-doc/版本升级_sql/旧版本升级v6.0.0.sql @@ -2,4 +2,7 @@ Use `oauth-center`; alter table oauth_client_details add token_format varchar(20) not null DEFAULT 'reference' COMMENT 'token格式: reference 引用令牌(不透明), self-contained 自包含令牌(jwt))'; alter table oauth_client_details drop column support_id_token; -alter table oauth_client_details drop column id_token_validity; \ No newline at end of file +alter table oauth_client_details drop column id_token_validity; + +UPDATE oauth_client_details set scope = 'app,openid,profile' where client_id = 'webApp'; +UPDATE oauth_client_details set scope = 'all,openid,profile' where client_id = 'zlt'; \ No newline at end of file