SSO 인증처리 및 2단계 인증처리 부분 기능 확대
This commit is contained in:
parent
b6cac9cd9f
commit
c0a632137c
@ -418,6 +418,61 @@ public class UserManageController
|
|||||||
return ResultData.ok(resBody);
|
return ResultData.ok(resBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 사용자 OTP KEY 조회
|
||||||
|
* @author urp 인프라본부 나혁제
|
||||||
|
* 작성일 : 2026.04.03
|
||||||
|
*/
|
||||||
|
@ResponseBody
|
||||||
|
@RequestMapping(value="/sys/selectOtpKey.do")
|
||||||
|
public ResponseEntity<ResultData> selectOtpKey( @RequestBody LinkedHashMap<String, Object> requestMap
|
||||||
|
, HttpServletRequest request
|
||||||
|
, HttpServletResponse response
|
||||||
|
) throws Exception
|
||||||
|
{
|
||||||
|
log.info("\n\n\n\n\n");
|
||||||
|
log.info(">>>>>>>>>>>>>>>>>>>>>>>>> /sys/selectOtpKey.do <<<<<<<<<<<<<<<<<<<<<<<<<");
|
||||||
|
log.info("getRequestURI [{}]", request.getRequestURI() );
|
||||||
|
log.info("입력값 확인 requestMap [{}]", requestMap.toString() );
|
||||||
|
|
||||||
|
LinkedHashMap<String, Object> resBody = new LinkedHashMap<String, Object>();
|
||||||
|
|
||||||
|
String strOtpKey = userManageService.selectOtpKey(requestMap);
|
||||||
|
|
||||||
|
resBody.put("strOtpKey", strOtpKey);
|
||||||
|
|
||||||
|
log.info("<<<<<<<<<<<<<<<<<<<<<<<<< /sys/selectOtpKey.do >>>>>>>>>>>>>>>>>>>>>>>>>");
|
||||||
|
|
||||||
|
return ResultData.ok(resBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 사용자 OTP KEY 갱신
|
||||||
|
* @author urp 인프라본부 나혁제
|
||||||
|
* 작성일 : 2026.04.03
|
||||||
|
*/
|
||||||
|
@ResponseBody
|
||||||
|
@RequestMapping(value="/sys/updateOtpKey.do")
|
||||||
|
public ResponseEntity<ResultData> updateOtpKey( @RequestBody LinkedHashMap<String, Object> requestMap
|
||||||
|
, HttpServletRequest request
|
||||||
|
, HttpServletResponse response
|
||||||
|
) throws Exception
|
||||||
|
{
|
||||||
|
log.info("\n\n\n\n\n");
|
||||||
|
log.info(">>>>>>>>>>>>>>>>>>>>>>>>> /sys/updateOtpKey.do <<<<<<<<<<<<<<<<<<<<<<<<<");
|
||||||
|
log.info("getRequestURI [{}]", request.getRequestURI() );
|
||||||
|
log.info("입력값 확인 requestMap [{}]", requestMap.toString() );
|
||||||
|
|
||||||
|
LinkedHashMap<String, Object> resBody = new LinkedHashMap<String, Object>();
|
||||||
|
|
||||||
|
int iResult = userManageService.updateOtpKey(requestMap);
|
||||||
|
|
||||||
|
resBody.put("iResult", iResult);
|
||||||
|
|
||||||
|
log.info("<<<<<<<<<<<<<<<<<<<<<<<<< /sys/updateOtpKey.do >>>>>>>>>>>>>>>>>>>>>>>>>");
|
||||||
|
|
||||||
|
return ResultData.ok(resBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -69,6 +69,12 @@ public interface UserManageDao
|
|||||||
// 2026.01.14 나혁제 ID 로 사용자정보 조회
|
// 2026.01.14 나혁제 ID 로 사용자정보 조회
|
||||||
public LinkedHashMap<String, Object> selectUserById(LinkedHashMap<String, Object> inMap) throws Exception;
|
public LinkedHashMap<String, Object> selectUserById(LinkedHashMap<String, Object> inMap) throws Exception;
|
||||||
|
|
||||||
|
// 2026.04.03 나혁제 사용자 OTP KEY 값 추출
|
||||||
|
public String selectOtpKey(LinkedHashMap<String, Object> inMap) throws Exception;
|
||||||
|
|
||||||
|
// 2026.04.03 나혁제 사용자 OTP KEY 갱신처리
|
||||||
|
public int updateOtpKey(LinkedHashMap<String, Object> inMap) throws Exception;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -156,6 +156,18 @@ public class UserManageService
|
|||||||
return userManageDao.selectUserById(inMap);
|
return userManageDao.selectUserById(inMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 2026.04.03 나혁제 사용자 OTP KEY 값 추출
|
||||||
|
public String selectOtpKey(LinkedHashMap<String, Object> inMap) throws Exception
|
||||||
|
{
|
||||||
|
return userManageDao.selectOtpKey(inMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2026.04.03 나혁제 사용자 OTP KEY 갱신처리
|
||||||
|
public int updateOtpKey(LinkedHashMap<String, Object> inMap) throws Exception
|
||||||
|
{
|
||||||
|
return userManageDao.updateOtpKey(inMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -403,4 +403,22 @@
|
|||||||
WHERE ESNTL_ID = #{uniqId}
|
WHERE ESNTL_ID = #{uniqId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectOtpKey" parameterType="java.util.LinkedHashMap" resultType="String">
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
OTP_KEY AS otpKey
|
||||||
|
FROM TB_TASK_USER_INFO
|
||||||
|
WHERE ESNTL_ID=#{uniqId}
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<update id="updateOtpKey" parameterType="java.util.LinkedHashMap" >
|
||||||
|
UPDATE TB_TASK_USER_INFO
|
||||||
|
SET OTP_KEY = #{otpKey}
|
||||||
|
WHERE ESNTL_ID = #{uniqId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user