Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump cn.dev33:sa-token-bom from 1.37.0 to 1.38.0 #704

Merged
merged 2 commits into from
May 12, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 12, 2024

Powered by Pull Request Badge

Bumps cn.dev33:sa-token-bom from 1.37.0 to 1.38.0.

Release notes

Sourced from cn.dev33:sa-token-bom's releases.

Sa-Token v1.38.0 发布,大幅重构 SSO 模块

  • sa-token-core:
    • 修复:修复 StpUtil.getSessionByLoginId(xx) 参数为 null 时创建无效 SaSession 的 bug。
    • 优化:在 SpringBoot 3.x 版本下错误的引入依赖时将得到启动失败的提示。 (感谢Uncarbon提交的pr)
    • 优化:进一步优化权限校验算法,hasXxx API 只会返回 true 或 false,不再抛出异常。
    • 重构:InvalidContextException 更名为 SaTokenContextException[已做向下兼容处理]
    • 重构:彻底删除 NotPermissionException 异常中的 getCode() 方法。 [过期API清理]
    • 重构:重构 SaTokenException 类方法 throwBy->notTruethrowByNull->notEmpty[已做向下兼容处理]
    • 重构:StpUtil.getSessionBySessionId 提供的 SessionId 为空时将直接抛出异常,而不是再返回null。[不向下兼容]
    • 新增:新增 Http Digest 认证模块简单实现。 [重要]
    • 重构:更换 HttpBasic 认证模块包名。 [已做向下兼容处理]
    • 新增:新增 StpUtil.getLoginDeviceByToken(xxx) 方法,用于获取任意 token 的登录设备类型。
    • 新增:新增 StpUtil.getTokenLastActiveTime() 方法,获取当前 token 最后活跃时间。
    • 修复:修复“当登录时指定 timeout 小于全局 timeout 时,Account-Session 有效期为全局 timeout”的问题。
    • 优化:首次获取 Token-Session 时,其有效期将保持和 token 有效期相同,而不是再是全局 timeout 值。
    • 移除:移除 SaSignConfigisCheckNonce 配置项。 [不向下兼容]
    • 新增:SaSignTemplate#checkRequest 增加“可指定参与签名参数”的功能。
    • 重构:将部分加密算法设置为过期。
    • 重构:优化 token 读取策略,空字符串将视为没有提交token。
    • 修复:sa-token-bom 补全缺失依赖。
    • 优化:二级认证校验之前必须先通过登录认证校验。
    • 修复:修复 StpUtil.getLoginId(T defaultValue) 传入 null 时无法正确返回值的bug。
  • sa-token-sso:
    • 优化:SSO 模式三,API 调用签名校验时,限定参与签名的参数列表,更安全。
    • 新增:新增 autoRenewTimeout 配置项:是否在每次下发 ticket 时,自动续期 token 的有效期(根据全局 timeout 值)
    • 新增:SaSsoConfig 新增配置 isCheckSign(是否校验参数签名),方便本地开发时的调试。
    • 新增:SaSsoConfig 新增配置 currSsoLogin,用于强制指定当前系统的 sso 登录地址。
    • 重构:整体重构 sa-token-sso 模块,将 server 端和 client 端代码拆分。 [重要] [不向下兼容]
    • 新增:SaSsoConfig 配置项 ssoLogoutCall 重命名为 currSsoLogoutCall[已做向下兼容处理]
    • 重构:模式三在校验 Ticket 时,也将强制校验签名才能调通请求。[不向下兼容]
    • 新增:新增 maxRegClient 配置项,用于控制模式三下 client 注册数量。
    • 新增:新增不同 SSO Client 配置不同 secret-key 的方案。 [重要]
    • 重构:匿名 client 将不再能解析出所有应用的 ticket。[不向下兼容]
    • 新增:新增 homeRoute 配置项:在 /sso/auth 登录后不指定 redirect 参数的情况下默认跳转的路由。
    • 优化:优化登录有效期策略,SSO Client 端登录时将延续 SSO Server 端的会话剩余有效期。
    • 新增:新增 checkTicketAppendData 策略函数,用于在校验 ticket 后,给 sso-client 端追加返回信息。
    • 新增:SSO章节文档新增用户数据同步/迁移方案的建议。
    • 修复:修复利用@字符可以绕过域名允许列表校验的漏洞。 [漏洞修复]
    • 修复:禁止 allow-url 配置项 * 符号出现在中间位置,因为这有可能导致校验被绕过。 [漏洞修复]
  • 新增插件/示例:
    • 新增:新增插件 sa-token-hutool-timed-cache,用于整合 Hutool 缓存插件 TimedCache。 [重要]
    • 新增:新增 SSM 架构整合 Sa-Token 简单示例。 [重要]
    • 新增:新增 beetl 整合 Sa-Token 简单示例。 [重要]
  • 文档:
    • 部分章节将 @Autowired 更换为更合适的 @PostConstruct
    • 新增过滤器执行顺序更改示例。
  • 其它:
    • 优化:将跨域处理demo拆分为独立仓库。
    • 优化:解决 springboot 集成 sa-token 后排除 jsckson 依赖无法成功启动的问题。
    • 优化:解决 sa-token-jwt 模块重复设置 keyt 秘钥问题。(感谢KonBAI提交的pr)

... (truncated)

Commits
  • 004a1b7 补全目录
  • bd92fbb 修正更新日志
  • 35cb810 修复 sa-token-sso 部分问题
  • 8f467bb StpUtil.getTokenSession() 时若未提供 token 将直接抛出异常
  • 43c9452 !300 调整 solon 的 dao 适配
  • 81709bc 取消 SaSessionForJson (发现没必要了)
  • fcab8b8 !299 优化 solon 相关的 SaTokenDaoOfRedisJson 序列化处理
  • 1a62c39 优化 solon 相关的 SaTokenDaoOfRedisJson 序列化处理
  • 1c05958 修正 solon 相关 demo 案例
  • 1850130 sa-token-sso model 类增加 implements Serializable,以便完成序列化存储
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies A dependency upgrade java Pull requests that update Java code minor Minor version labels May 12, 2024
@auto-assign auto-assign bot requested a review from henry-hub May 12, 2024 09:10
@ihub-bot ihub-bot bot modified the milestone: 1.4.3 May 12, 2024
Bumps [cn.dev33:sa-token-bom](https://github.com/dromara/sa-token) from 1.37.0 to 1.38.0.
- [Release notes](https://github.com/dromara/sa-token/releases)
- [Commits](dromara/Sa-Token@v1.37.0...v1.38.0)

---
updated-dependencies:
- dependency-name: cn.dev33:sa-token-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/gradle/cn.dev33-sa-token-bom-1.38.0 branch from 4c41d41 to 5703913 Compare May 12, 2024 09:14
Copy link

sonarcloud bot commented May 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@henry-hub henry-hub removed the minor Minor version label May 12, 2024
@henry-hub henry-hub merged commit 8844fd1 into main May 12, 2024
7 checks passed
@henry-hub henry-hub deleted the dependabot/gradle/cn.dev33-sa-token-bom-1.38.0 branch May 12, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies A dependency upgrade java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant