[MOD] refreshtoken 수정

main
bjkim 10 months ago
parent b95ef3144c
commit 154ef07f9a

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

@ -108,10 +108,21 @@ public class JwtUtils {
.build(); .build();
} }
private String getCookieValueByName(HttpServletRequest request, String name) { private String getCookieValueByName(HttpServletRequest request, String name) {
Cookie cookie = WebUtils.getCookie(request, name); // 1. 쿠키에서 먼저 찾기
return cookie != null ? cookie.getValue() : null; Cookie cookie = WebUtils.getCookie(request, name);
} 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) { // private String getCookieValueByName(HttpServletRequest request, String name) {
// Cookie cookie = WebUtils.getCookie(request, name); // Cookie cookie = WebUtils.getCookie(request, name);

Loading…
Cancel
Save