[MOD] refreshtoken 수정

main
bjkim 10 months ago
parent b95ef3144c
commit 154ef07f9a

@ -18,7 +18,7 @@ public class WorkflowEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Schema(description = "워크플로우 ID22", example = "null", defaultValue = "null")
@Schema(description = "워크플로우 ID", example = "null", defaultValue = "null")
@Comment("ID")
private Long id;
@ -55,5 +55,6 @@ public class WorkflowEntity {
private String kubeflowStatus;
@Schema(description = "프로젝트 아이디", example = "1", defaultValue = "0")
@Column(nullable = false)
private Long projectId;
}

@ -109,8 +109,19 @@ public class JwtUtils {
}
private String getCookieValueByName(HttpServletRequest request, String name) {
// 1. 쿠키에서 먼저 찾기
Cookie cookie = WebUtils.getCookie(request, name);
return cookie != null ? cookie.getValue() : null;
if (cookie != null) {
return cookie.getValue();
}
// 2. 없으면 헤더에서 찾기
String headerValue = request.getHeader(name);
if (headerValue != null && !headerValue.isBlank()) {
return headerValue;
}
return null;
}
// private String getCookieValueByName(HttpServletRequest request, String name) {

Loading…
Cancel
Save