Skip to content

[FIX] 로컬/배포 환경 대응을 위한 OAuth2 리다이렉트 로직 수정#75

Merged
rhkr8521 merged 2 commits intodevelopfrom
fix/#74
Feb 11, 2026
Merged

[FIX] 로컬/배포 환경 대응을 위한 OAuth2 리다이렉트 로직 수정#75
rhkr8521 merged 2 commits intodevelopfrom
fix/#74

Conversation

@gogori6565
Copy link
Contributor

@gogori6565 gogori6565 commented Feb 9, 2026

📣 Related Issue

📝 Summary

  • 로컬/배포 환경 로그인 대응을 위해 로그인 API에서 수행하는 환경(type)을 직접 post 요청하였습니다.
  • 클라이언트(프론트)단에서 들어온 type에 따라 환경에 맞는 redirect_uri로 로그인이 요청됩니다.
    • type -> local/deploy

📬 Reference

image

Comment on lines +58 to +59
// 프론트에서 보낸 redirectUri가 있으면 그것을 사용하고, 없으면 설정 파일의 기본값을 사용
String finalRedirectUri = (redirectUri != null && !redirectUri.isBlank()) ? redirectUri : defaultRedirectUri;
Copy link
Member

Choose a reason for hiding this comment

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

redirectUri를 직접 전송하는것 보단 local, deploy 처럼 서버에 두 Uri를 저장하고 서버에서 직접 관리하는게 좋을거같아요! 오픈 리다이렉트 피싱으로 공격이 이루어질수있어요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

서버에서 직접 관리하는 방식으로 변경하였습니다! 조언 감사합니다.

Copy link
Member

@rhkr8521 rhkr8521 left a comment

Choose a reason for hiding this comment

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

너무 잘했어요~~

@rhkr8521 rhkr8521 merged commit 1ebcb59 into develop Feb 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] 로컬/배포 환경 대응을 위한 OAuth2 리다이렉트 로직 수정

2 participants