Skip to content

Commit

Permalink
fix : prod. -> api. 경로 변경(카카오콜백 등)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jaesungyu committed May 6, 2024
1 parent de7ae9d commit 0c96659
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
"http://127.0.0.1:3000", "http://127.0.0.1:5500", "http://127.0.0.1:5000",
"http://hhboard.shop", "https://hhboard.shop", "https://vercel-nu-lyart.vercel.app", // 프론트엔드 주소 추가 필요
"https://hh-99-nawabali-fe.vercel.app", "https://nawabali-fe.vercel.app",
"https://www.dongnaebangnae.com", "https://prod.dongnaebangnae.com", "https://dongnaebangnae.vercel.app"

"https://www.dongnaebangnae.com", "https://prod.dongnaebangnae.com", "https://dongnaebangnae.vercel.app",
"https://api.dongnaebangnae.com"
)
);
configuration.setAllowedMethods(Collections.singletonList("*"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@ public class KakaoService {
private final String domain = "https://www.dongnaebangnae.com/api/user/kakao/callback";

private final String release = "https://prod.dongnaebangnae.com/api/user/kakao/callback";
private final String release_upgraded = "https://api.dongnaebangnae.com/api/user/kakao/callback";


@Value("${spring.security.oauth2.client.registration.kakao.client-id}")
private String clientId;

@Transactional
public String kakaoLogin(String code , HttpServletResponse response) throws JsonProcessingException, IOException {
// 1. "인가 코드"로 "액세스 토큰" 요청
String accessToken = getAccessToken(code, release);
String accessToken = getAccessToken(code, release_upgraded);

// 2. 필요시에 회원가입 및 위치 정보(address 값) 저장
User kakaoUser = registerKakaoUserIfNeeded(accessToken);
Expand Down

0 comments on commit 0c96659

Please sign in to comment.