From fc903cf29614ab6a94a5fbc4d83f99a89a64df0e Mon Sep 17 00:00:00 2001 From: click33 <2393584716@qq.com> Date: Tue, 10 Jan 2023 19:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sa-token-doc/more/update-log.md | 18 ++++++++++++++++++ sa-token-doc/oauth2/oauth2-server.md | 2 +- sa-token-doc/start/download.md | 2 ++ sa-token-doc/start/example.md | 2 ++ sa-token-doc/start/webflux-example.md | 1 + sa-token-doc/use/config.md | 7 ++++--- 6 files changed, 28 insertions(+), 4 deletions(-) diff --git a/sa-token-doc/more/update-log.md b/sa-token-doc/more/update-log.md index e0a7101a..a14fb5a1 100644 --- a/sa-token-doc/more/update-log.md +++ b/sa-token-doc/more/update-log.md @@ -1,6 +1,24 @@ # 更新日志 +### 2023-1-10 @v1.34.0 +- 新增:新增 `SpringBoot3.x` 集成插件,感谢 `@jry` 提供的参考思路。 **[重要]** +- 新增:新增 `sa-token-dao-redisson-jackson` 插件,感谢 `@疯狂的狮子Li` 提交的pr。 **[重要]** +- 新增:Alone-Redis 新增集群配置能力,感谢 `@appleOfGray` 提交的pr。 **[重要]** +- 升级:升级 Sign 签名模块,增加部分重载方法。 +- 重构:`SaSignTemplate#joinParams` 更名为 `joinParamsDictSort`。 **[不向下兼容]** +- 升级:升级临时 Token 认证模块,可指定 service 参数。 +- 删除:彻底删除过期类 `SaAnnotationInterceptor` 和 `SaRouteInterceptor`。 +- 删除:SSO 模块移除过期类 `SaSsoHandle` 类。 +- 新增:SSO 模块增加 ticket 的 client 锁定功能,解决部分场景下的 ticket 劫持问题。 **[重要]** +- 修复:修复 SSO 模式2,在 client 端配置 `is-share=false` 时无法单点注销的问题。 +- 修复:修复 SSO 模式3 部分场景下注销时无法正常回退页面的问题。 +- 修复:修复 OAuth2 模块示例 getClientModel 方法 clientId 写错的问题。 +- 重构:使用 jwt-simple 模式后 is-share 恒等于 false,无论是否有设定 `setExtra` 数据。 +- 修复:修复源码注释和文档的部分不合适之处。 + + + ### 2022-11-16 @v1.33.0 - 重构:重构异常状态码机制。 **[重要]** - 重构:重构 sa-token-sso 模块异常码改为 300 开头,sa-token-jwt 异常码改为 302 开头。 **[不向下兼容]** diff --git a/sa-token-doc/oauth2/oauth2-server.md b/sa-token-doc/oauth2/oauth2-server.md index 688d656d..debca4e2 100644 --- a/sa-token-doc/oauth2/oauth2-server.md +++ b/sa-token-doc/oauth2/oauth2-server.md @@ -57,7 +57,7 @@ public class SaOAuth2TemplateImpl extends SaOAuth2Template { // 此为模拟数据,真实环境需要从数据库查询 if("1001".equals(clientId)) { return new SaClientModel() - .setClientId("10001") + .setClientId("1001") .setClientSecret("aaaa-bbbb-cccc-dddd-eeee") .setAllowUrl("*") .setContractScope("userinfo") diff --git a/sa-token-doc/start/download.md b/sa-token-doc/start/download.md index e1b27fcc..05130deb 100644 --- a/sa-token-doc/start/download.md +++ b/sa-token-doc/start/download.md @@ -19,6 +19,7 @@ ${sa.top.version} ``` +注:如果你使用的 `SpringBoot 3.x`,只需要将 `sa-token-spring-boot-starter` 修改为 `sa-token-spring-boot3-starter` 即可。 注:如果你使用的框架基于 Reactor 模型构建(Netty、WebFlux、ShenYu、SC Gateway等),请引入此包 @@ -30,6 +31,7 @@ ${sa.top.version} ``` +注:如果你使用的 `SpringBoot 3.x`,只需要将 `sa-token-reactor-spring-boot-starter` 修改为 `sa-token-reactor-spring-boot3-starter` 即可。 参考:[Solon官网](https://solon.noear.org/) diff --git a/sa-token-doc/start/example.md b/sa-token-doc/start/example.md index ebafc551..00fc3c97 100644 --- a/sa-token-doc/start/example.md +++ b/sa-token-doc/start/example.md @@ -30,6 +30,8 @@ implementation 'cn.dev33:sa-token-spring-boot-starter:${sa.top.version}' ``` +注:如果你使用的 `SpringBoot 3.x`,只需要将 `sa-token-spring-boot-starter` 修改为 `sa-token-spring-boot3-starter` 即可。 + Maven依赖一直无法加载成功?[参考解决方案](https://sa-token.cc/doc.html#/start/maven-pull) 更多内测版本了解:[Sa-Token最新版本](https://gitee.com/dromara/sa-token/blob/dev/sa-token-doc/start/new-version.md) diff --git a/sa-token-doc/start/webflux-example.md b/sa-token-doc/start/webflux-example.md index 435c4ec6..687a310b 100644 --- a/sa-token-doc/start/webflux-example.md +++ b/sa-token-doc/start/webflux-example.md @@ -33,6 +33,7 @@ implementation 'cn.dev33:sa-token-reactor-spring-boot-starter:${sa.top.version}' ``` +注:如果你使用的 `SpringBoot 3.x`,只需要将 `sa-token-reactor-spring-boot-starter` 修改为 `sa-token-reactor-spring-boot3-starter` 即可。 diff --git a/sa-token-doc/use/config.md b/sa-token-doc/use/config.md index 392ed93c..aa5bd486 100644 --- a/sa-token-doc/use/config.md +++ b/sa-token-doc/use/config.md @@ -173,9 +173,10 @@ Client 端配置: | checkTicketUrl| String | /sso/checkTicket | 配置 Server 端的 `ticket` 校验地址 | | userinfoUrl | String | /sso/userinfo | 配置 Server 端查询 `userinfo` 地址 | | sloUrl | String | /sso/signout | 配置 Server 端单点注销地址 | -| ssoLogoutCall | String | null | 配置当前 Client 端的单点注销回调URL (为空时自动获取) | -| secretkey | String | null | 接口调用秘钥 (用于SSO模式三单点注销的接口通信身份校验) | -| serverUrl | String | null | 配置 Server 端主机总地址,拼接在 `authUrl`、`checkTicketUrl`、`userinfoUrl`、`sloUrl` 属性前面,用以简化各种 url 配置,[详解](/use/config?id=配置项详解:serverUrl) | +| ssoLogoutCall | String | null | 配置当前 Client 端的单点注销回调URL (为空时自动获取) | +| secretkey | String | null | 接口调用秘钥 (用于SSO模式三单点注销的接口通信身份校验) | +| serverUrl | String | null | 配置 Server 端主机总地址,拼接在 `authUrl`、`checkTicketUrl`、`userinfoUrl`、`sloUrl` 属性前面,用以简化各种 url 配置,[详解](/use/config?id=配置项详解:serverUrl) | +| client | String | "" | 当前 Client 名称标识,用于和 ticket 码的互相锁定 | 配置示例: