Skip to content

Commit

Permalink
[feat] 카카오 경로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwon committed Jul 22, 2023
1 parent a359157 commit 5028814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
log.info("OAuth2User = {}", oAuth2User);
String targetUrl;
log.info("토큰 발행 시작");

// "https://hooking-dev.netlify.app/oath-processor/"
String token = jwtTokenProvider.createJwtAccessToken(oAuth2User.getAttribute("id").toString(), role); //토큰발행
log.info("{}", token);
//배포url, 로컬url -> 커스텀파라미터
targetUrl = UriComponentsBuilder.fromUriString("https://hooking-dev.netlify.app/oath-processor/")
targetUrl = UriComponentsBuilder.fromUriString("http://localhost:3000/oath-processor")
.queryParam("token", token)
.queryParam("firstLogin", firstLogin)
.build().toUriString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public HttpRes<List<CopyRes>> copyList() {
}

private List<CopyRes> getLimitedCopyRes(List<CopyRes> copyResList, int limit){
// Collections.shuffle(copyResList);
Collections.shuffle(copyResList);
int endIndex = Math.min(limit, copyResList.size());
return copyResList.subList(0,endIndex);
}
Expand Down

0 comments on commit 5028814

Please sign in to comment.