Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

[BM-246] 로그인 요청 url의 리다이렉트 url로 로그인시 리다이렉트 #111

Merged
merged 5 commits into from
Aug 8, 2022

Conversation

UJ15
Copy link
Member

@UJ15 UJ15 commented Aug 7, 2022

기존에 하드코딩으로 되어있던 리다이렉트 url을 프론트에서 처음 요청시 redirect url로 리다이렉트 하도록 수정했습니다.

localhost:8080/oauth2/authorization/google?redirect_uri=http://localhost:3000/auth
이렇게 로그인 요청시 localhost:3000/auth로 리다이렉트 해줌

@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2022

Codecov Report

Merging #111 (e959771) into main (e199c91) will decrease coverage by 2.08%.
The diff coverage is 2.12%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #111      +/-   ##
============================================
- Coverage     81.62%   79.53%   -2.09%     
  Complexity      364      364              
============================================
  Files            74       75       +1     
  Lines          1132     1163      +31     
  Branches         27       32       +5     
============================================
+ Hits            924      925       +1     
- Misses          190      220      +30     
  Partials         18       18              
Impacted Files Coverage Δ
...ttpCookieOAuth2AuthorizationRequestRepository.java 18.18% <0.00%> (+0.53%) ⬆️
...mon/oauth2/OAuth2AuthenticationSuccessHandler.java 19.23% <0.00%> (-4.58%) ⬇️
...a/com/saiko/bidmarket/common/util/CookieUtils.java 0.00% <0.00%> (ø)
...iko/bidmarket/common/config/WebSecurityConfig.java 87.14% <100.00%> (+0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e199c91...e959771. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Aug 7, 2022

📊 BidMarket-pr-111 분석 결과 확인 링크

Copy link
Member

@dojinyou dojinyou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@waterfogSW waterfogSW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

Comment on lines 19 to 23
for (Cookie cookie : cookies) {
if (cookie.getName().equals(name)) {
return Optional.of(cookie);
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (Cookie cookie : cookies) {
if (cookie.getName().equals(name)) {
return Optional.of(cookie);
}
}
return Arrays.stream(cookies)
.filter(cookie -> cookie.getName().equals(name))
.findFirst();

스트림쓰면 더 가독성있게 쓸 수 있을것 같습니다

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

📊 BidMarket-pr-111 분석 결과 확인 링크

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

📊 BidMarket-pr-111 분석 결과 확인 링크

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

📊 BidMarket-pr-111 분석 결과 확인 링크

@UJ15 UJ15 merged commit 0c9c804 into main Aug 8, 2022
@UJ15 UJ15 deleted the BM-246 branch August 8, 2022 08:18
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants