feat: Implement Oauth2 login log service and repository
- Added Oauth2LogLoginService for managing user authorization logs. - Implemented methods for inserting logs, cleaning logs, and exporting log data. - Created a new file for Oauth2 login log service. refactor: Remove unused open_api module - Deleted the open_api.go file as it was not utilized in the project. fix: Update error codes in SysProfileController - Changed error codes for binding errors and user authentication errors to more descriptive values. fix: Update cache handling in SysConfig and SysDictType services - Modified Redis set operations to include expiration time for cached values. refactor: Update middleware authorization checks - Replaced PreAuthorize middleware with AuthorizeUser across multiple routes in system and tool modules for consistency. chore: Clean up trace and ws modules - Updated middleware authorization in trace and ws modules to use AuthorizeUser.
This commit is contained in:
@@ -135,13 +135,13 @@ security:
|
||||
# JWT 令牌配置
|
||||
jwt:
|
||||
# 令牌算法 HS256 HS384 HS512
|
||||
algorithm: "HS512"
|
||||
algorithm: "HS256"
|
||||
# 令牌密钥
|
||||
secret: "217a0481c7f9cfe1cb547d32ee012b0f"
|
||||
# 令牌有效期(默认120分钟)
|
||||
expiresIn: 120
|
||||
# 验证令牌有效期,相差不足xx分钟,自动刷新缓存
|
||||
refreshIn: 20
|
||||
# 访问令牌有效期(默认15分钟)
|
||||
expiresIn: 15
|
||||
# 刷新令牌有效期(默认7*24*60分钟)
|
||||
refreshIn: 10080
|
||||
|
||||
# DB 数据源
|
||||
database:
|
||||
|
||||
Reference in New Issue
Block a user