SSO 인증처리 및 2단계 인증처리 부분 기능 확대
This commit is contained in:
parent
b6cac9cd9f
commit
c0a632137c
@ -418,9 +418,64 @@ public class UserManageController
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -68,8 +68,14 @@ public interface UserManageDao
|
||||
|
||||
// 2026.01.14 나혁제 ID 로 사용자정보 조회
|
||||
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,7 +156,19 @@ public class UserManageService
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -402,5 +402,23 @@
|
||||
SET PWD = #{pwd}
|
||||
WHERE ESNTL_ID = #{uniqId}
|
||||
</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>
|
||||
Loading…
Reference in New Issue
Block a user