Browse Source

修改授权码过期时间

tags/24080901
WendyYang 8 months ago
parent
commit
e3b8038fbe
4 changed files with 30 additions and 10 deletions
  1. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/common/config/AuthCodeProps.java
  2. +27
    -8
      hz-pm-api/src/main/java/com/hz/pm/api/external/todo/dto/MhTodoExtraParamDTO.java
  3. +1
    -1
      hz-pm-api/src/main/resources/security/auth-dev.yml
  4. +1
    -0
      hz-pm-api/src/main/resources/security/auth-prod.yml

+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/common/config/AuthCodeProps.java View File

@@ -21,7 +21,7 @@ public class AuthCodeProps {
/** /**
* authCode失效时间(单位:秒) * authCode失效时间(单位:秒)
*/ */
private Integer expireTime = 10;
private Integer expireTime = 5;


/** /**
* authCode长度(最大:24~32) * authCode长度(最大:24~32)


+ 27
- 8
hz-pm-api/src/main/java/com/hz/pm/api/external/todo/dto/MhTodoExtraParamDTO.java View File

@@ -15,22 +15,41 @@ import lombok.Data;
@Builder @Builder
public class MhTodoExtraParamDTO { public class MhTodoExtraParamDTO {


/**
* 用户ID
*/
private Long userId; private Long userId;

/**
* 用户名
*/
private String userName; private String userName;

/**
* 流程实例ID
*/
private String instanceId; private String instanceId;

/**
* 项目编码
*/
private String projectCode; private String projectCode;

/**
* 项目ID
*/
private Long projectId; private Long projectId;

/**
* 任务ID
*/
private String taskId; private String taskId;

/**
* 标段ID
*/
private Long bidId; private Long bidId;

/**
* 任务节点ID
*/
private String nodeId; private String nodeId;

/**
* 跳转页面路径
*/
private String path; private String path;


} }

+ 1
- 1
hz-pm-api/src/main/resources/security/auth-dev.yml View File

@@ -19,7 +19,7 @@ security:
- /api/v1/user/auth/login/password - /api/v1/user/auth/login/password
- /api/v1/user/auth/forget-password - /api/v1/user/auth/forget-password
- /api/v1/user/auth/common-login - /api/v1/user/auth/common-login
- /api/v1/user/auth/common-login
- /api/v1/user/auth/getAuthCode
- /doc.html - /doc.html
- /ok.html - /ok.html
- /open/api/** - /open/api/**


+ 1
- 0
hz-pm-api/src/main/resources/security/auth-prod.yml View File

@@ -19,6 +19,7 @@ security:
- /api/v1/user/auth/login/password - /api/v1/user/auth/login/password
- /api/v1/user/auth/forget-password - /api/v1/user/auth/forget-password
- /api/v1/user/auth/common-login - /api/v1/user/auth/common-login
- /api/v1/user/auth/getAuthCode
- /doc.html - /doc.html
- /ok.html - /ok.html
- /open/api/** - /open/api/**


Loading…
Cancel
Save