Commit Graph
325 Commits
Author SHA1 Message Date
PIGCLOUD ee27036339 chore: 统一 PIGX 项目版本为 6.2.0 2026-09-22 22:17:22 +08:00
PIGCLOUD d46af13a2e feat(auth): 优化图形验证码生成逻辑,新增自定义颜色支持
(cherry picked from commit af900df10d6e9df4b9812332f126c2e96474722e)
2026-09-22 21:43:38 +08:00
PIGCLOUD 87489ed353 chore(deps): align non-AI platform with 6.1.0 2026-08-01 11:57:32 +08:00
PIGCLOUD 778e795d9d chore: update version from 6.0.0-SNAPSHOT to 6.0.0 in pom.xml 2026-06-01 09:12:29 +08:00
PIGCLOUD c48d5f753c feat(pigx-auth): 增加 SM4 国密算法支持并优化密码解密逻辑 2026-05-03 21:25:09 +08:00
PIGCLOUD e88b2818fd chore(pom): update parent version to 6.0.0-SNAPSHOT and adjust dependencies fix: correct import paths for Spring Boot components and update Jackson configuration 2026-05-01 22:20:52 +08:00
PIGCLOUD 98656e4af3 chore: upgrade version to 5.12.0 (non-AI modules only)
Cherry-picked from 799188b31, excluding pigx-aigc and AI-related common modules.
2026-03-08 15:15:12 +08:00
PIGCLOUD c36ef5fdf5 refactor(copyright): 更新版权年份至 2026
- 统一更新所有源文件、LICENSE、pom.xml 等的版权年份至 2026
2026-01-03 22:55:26 +08:00
PIGCLOUD 5a324b75c9 refactor(build): 移除多个模块中spring-boot-maven-plugin的CLASSIC配置
- 统一清理pigx-flow/pigx-app-server等模块的冗余loaderImplementation配置
- 简化各模块pom.xml中的spring-boot-maven-plugin配置项
2025-12-28 16:38:52 +08:00
PIGCLOUD 6743d8d7ab feat(version): 升级项目版本至5.11.0
- 更新所有模块的pom.xml中version字段
- 同步更新CLAUDE.md文档中的版本信息
2025-12-28 16:33:51 +08:00
PIGCLOUD f30b32a28a feat(upms): 重构国际化消息和错误码模块化架构
- 移除全局ErrorCodes接口,按模块拆分Auth/Upms/App错误码定义
- 新增模块化i18n消息文件,支持多JAR包扫描加载机制
- 重构MsgUtils支持LocaleContextHolder动态区域解析
- 统一OAuthClientException异常处理支持错误码和描述参数
- 优化企业微信/钉钉同步错误消息国际化支持
2025-12-28 11:27:03 +08:00
PIGCLOUD 4adc7b00de feat(auth): 重构FormIdentityLoginConfigurer的handler依赖结构
- 将SsoLogoutSuccessHandler移动到common-security模块中统一管理
- 使用TenantSavedRequestAwareAuthenticationSuccessHandler替代原有success handler
- 保持FormAuthenticationFailureHandler作为默认failure handler
2025-12-28 11:21:24 +08:00
PIGCLOUD e1ac291a1e feat(auth): 增强XSS防护功能
- 在confirm.ftl模板中对principalName等变量添加?html转义
- 在login.ftl模板中对tenant.id和error变量添加防护处理
- 移除冗余的SsoLogoutSuccessHandler实现类
- 在PigxTokenEndpoint中添加XSS防护注释说明
2025-12-28 11:21:18 +08:00
PIGCLOUD 5123e3f116 feat(security): 新增单体一键 CORS跨域配置支持 security.cors.enabled
- 新增PigxBootCorsProperties配置类用于管理CORS跨域参数
- 在AuthorizationServer和ResourceServer中集成CORS配置逻辑
- 支持通过security.cors.enabled开关控制跨域功能
- 提供allowedOriginPatterns等细粒度跨域参数配置
2025-11-18 09:39:53 +08:00
PIGCLOUD 6d837c6f1c fix(ImageCodeEndpoint): 修改验证码类型为动态参数,支持多种验证码类型
fix(ValidateCodeFilter): 更新验证码校验逻辑,支持滑块和点击文字验证码
2025-11-18 09:39:37 +08:00
pigcloud ed6138b566 refactor(dependencies): 升级项目版本至5.10.0
- 统一更新所有模块的parent版本号
- 标准化pom.xml文件格式和缩进
- 保持依赖配置和模块结构的一致性
2025-10-10 12:53:02 +08:00
lengleng 79b27b6d7d feat(auth): 增强认证逻辑,支持密码过期校验及定时攻击保护机制 2025-10-09 14:48:11 +08:00
lengleng 70855f8b5b fix(auth): 修复微信登录新用户插入用户表时返回信息报错问题#6809
- 在retrieveUser方法中添加对pigxUser.getTenantId()的非空检查
- 使用Objects.nonNull确保tenantId不为空时才设置TenantContextHolder
2025-08-05 14:54:22 +08:00
PIG AI d32b1af5e4 refactor(auth): 统一代码格式与优化注释风格
- 规范多个类中的代码缩进与空行格式
- 删除冗余注释与不必要的空行
- 统一catch代码块的花括号换行风格
- 优化方法注释的简洁性与一致性
- 调整部分类成员变量的声明顺序
2025-07-05 09:12:00 +08:00
PIG AI c0e9ed69be feat(auth): 优化登录失败次数统计逻辑
- 使用RedisUtils.increment替代原生Redis命令实现递增操作
- 简化代码结构并提升可读性
2025-07-05 09:00:34 +08:00
PIG AI 2d7d089fcd feat(auth): 优化租户过期验证逻辑并统一Redis key格式
- 修改登录失败/成功处理中的Redis key格式,移除tenantKeyStrResolver依赖
- 简化RedisUtils.execute调用方式,移除冗余的RedisCallback类型声明
- 在SysTenantServiceImpl中增加租户状态和时间有效性过滤
- 重构TenantContextHolderFilter的租户验证逻辑,增加remoteTenantService备用查询
- 调整租户无效时的HTTP状态码为426并优化响应内容类型
2025-07-04 16:41:06 +08:00
PIG AI 00efa97eef feat(cache): 在RedisUtils中增加increment方法并优化验证码缓存服务
- 新增RedisUtils.increment方法用于原子递增操作
- 重构CaptchaCacheServiceProvider使用RedisUtils替代直接stringRedisTemplate调用
- 统一Redis缓存操作工具类方法调用方式
2025-07-04 12:24:28 +08:00
PIG AI bf1e58fb71 feat(auth): 增加租户上下文支持
- 在retrieveUser方法中为PigxUser类型设置TenantContextHolder
- 确保用户认证时自动携带租户ID信息
2025-07-04 12:07:17 +08:00
PIG AI c8edf16536 feat(security): 重构Redis存储的OAuth2授权服务
- 将PigxRedisOAuth2AuthorizationService迁移至common-security模块
- 使用RedisTemplate替代RedisUtils进行缓存操作
- 增加Jackson序列化支持RouteDefinitionVo
- 优化token存储逻辑与过期时间处理
- 统一授权服务与路由管理的Redis配置
2025-07-04 12:07:00 +08:00
PIG AI c8a8da7497 feat(tenant): 新增租户用户管理功能
- 在SysUserPost实体类中添加tenantId字段
- 新增SysTenantUserDTO用于租户用户数据传输
- 在SysTenantController中新增用户租户管理接口
- 实现租户用户的增删改查及分页查询功能
- 优化ValidateCodeFilter中的验证码校验逻辑
- 修复PigxUserDetailsService中空部门列表处理问题
2025-07-04 12:01:27 +08:00
PIG AI d3770993ce refactor(user): update user information retrieval to use UserDTO and improve method documentation 2025-07-04 11:58:50 +08:00
PIG AI 5058c07bff refactor(auth): 优化OAuth2认证模块文档与token查询逻辑
- 重构OAuth2ResourceOwnerBaseAuthenticationProvider的JavaDoc为中文文档
- 优化token查询接口的分页处理逻辑
- 使用TenantContextHolder替代tenantKeyStrResolver获取租户信息
- 简化token列表查询直接从Redis key解析基础信息
2025-07-04 11:56:36 +08:00
PIG AI a970fe166a refactor(stream): 替换Collectors.toList()为toList()方法
- 优化代码简洁性,使用Java 16引入的Stream.toList()替代Collectors.toList()
- 统一代码风格,减少冗余代码
- 提升代码可读性,简化stream操作
2025-07-04 11:50:17 +08:00
PIG AI de7e1fb4df feat(pom): 升级项目版本及依赖版本
- 将项目版本从5.8.0升级至5.9.0
- 升级spring-boot版本至3.5.3
- 升级spring-boot-admin版本至3.5.0
- 更新所有子模块的parent版本号
2025-06-24 09:00:07 +08:00
PIG AI 5978f87268 feat(auth): 更新captcha依赖库
- 将滑块验证码依赖从spring-boot-starter-captcha替换为captcha-spring-boot-starter
- 使用pig-mesh维护的新版本captcha组件
2025-06-23 16:20:13 +08:00
PIG AI 78874c1646 refactor(pom): 适配 springboot 3.5 & spring cloud 2025 2025-06-23 16:19:50 +08:00
PIG AI 6c8e257a1e fix(auth/templates): 修复模板中request.contextPath的空指针问题
- 在confirm.ftl和login.ftl模板中增加request对象判空逻辑
- 优化OAuth2授权和登录表单的action路径安全性
2025-06-23 16:17:05 +08:00
冷冷 3a8116b5ea chore(pom): update version from 5.7.0 to 5.8.0 across multiple modules 2025-03-09 20:47:25 +08:00
冷冷 d474799fa7 feat(encrypt-api): 支持全局请求报文加密
BREAKING CHANGE: 文档和用法完全和之前不一样,不需要耦合代码
2025-03-07 18:18:02 +08:00
冷冷 deddae63d5 refactor(auth): 移除不必要的日志依赖,简化 TenantSavedRequestAwareAuthenticationSuccessHandler 类 2025-03-07 18:14:03 +08:00
冷冷 597123ae6d feat(auth): 修改查询token的接口路径为/token/query-token 2025-03-07 18:11:09 +08:00
冷冷 8afdafbea4 refactor(auth): 将 requestCache 字段修改为 final,增强类的不可变性 2025-02-18 22:18:46 +08:00
冷冷 3a5d7a9eb9 refactor(auth): 移除不必要的日志依赖,简化 TenantSavedRequestAwareAuthenticationSuccessHandler 类 2025-02-18 22:18:22 +08:00
冷冷 7f8626e04f feat: 更新 PigxTokenEndpoint 和相关模板,优化授权流程和界面 2025-02-18 22:17:42 +08:00
冷冷 cfae5e1c05 feat: 删除PigxBootSecurityServerConfiguration文件并优化授权服务器配置(jdk17-dev)
删除`PigxBootSecurityServerConfiguration`文件,将相关配置迁移至`AuthorizationServerConfiguration`。
优化`AuthorizationServerConfiguration`中的授权服务器安全策略,移除不必要的条件注解`@ConditionalOnProperty`。
修复`FormIdentityLoginConfigurer`中的表单登录处理URL,确保与授权服务器配置一致。
2025-02-18 20:25:11 +08:00
冷冷 a00f4f81a4 chore(deps): 更新 Spring Security 配置并引入 Lazy 注解 (jdk17-dev)
在 `AuthorizationServerConfiguration` 中移除 `DelegatingAuthenticationConverter` 的重复导入,并调整其位置。在 `PigxResourceServerConfiguration` 中引入 `@Lazy` 注解优化依赖注入,同时将 `PrePostTemplateDefaults` 替换为 `AnnotationTemplateExpressionDefaults`。
2025-02-18 19:41:57 +08:00
冷冷 d8c9f64079 fix(core): login token user_id set string type 2025-02-08 15:17:06 +08:00
冷冷 9415d82c28 🔖 V5.7.0 2024-12-05 12:23:43 +08:00
冷冷 8baef653f1 upgrade(all): 5.7.0-SNAPSHOT 2024-11-27 22:04:25 +08:00
冷冷 8d0faea641 fix(security): check-token token相关接口错误时返回不正确的json
Closes #5998
2024-11-24 17:42:14 +08:00
673315837 3f82770353 CaptchaCacheServiceProvider添加接口的increment实现 2024-11-06 12:46:01 +08:00
冷冷 89dd047167 upgrade(version): 5.6.0 2024-08-26 23:45:03 +08:00
冷冷 bb5e9cb555 upgrade(snapshot): 5.6.0-SNAPSHOT 2024-08-16 22:05:47 +08:00
冷冷 f2921c2102 fix(security): 安全问题,数字验证码增加参数校验避免伪造绕过 2024-08-16 15:28:04 +08:00
冷冷 aba51bbdb8 ♻️ 增加 NoToken 注解方便对应 无token feign调用场景
(cherry picked from commit 2d78533a29c9c392f75d76cf202ae1daf8f7c77b)
2024-08-16 15:16:20 +08:00