Skip to content

Commit a2fdd7d

Browse files
committed
fix: 소셜 도메인 조정
1 parent ba237fb commit a2fdd7d

5 files changed

Lines changed: 5 additions & 3 deletions

File tree

docker-compose.prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
OAUTH_FRONTEND_SUCCESS_URI: ${OAUTH_FRONTEND_SUCCESS_URI}
2424
OAUTH_FRONTEND_SIGNUP_URI: ${OAUTH_FRONTEND_SIGNUP_URI}
2525
OAUTH_FRONTEND_FAILURE_URI: ${OAUTH_FRONTEND_FAILURE_URI}
26+
OAUTH_KAKAO_LOGIN_URL: ${OAUTH_KAKAO_LOGIN_URL}
2627
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS}
2728
COOKIE_SAME_SITE: ${COOKIE_SAME_SITE:-Lax}
2829
COOKIE_DOMAIN: ${COOKIE_DOMAIN:-}

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
OAUTH_FRONTEND_SUCCESS_URI: ${OAUTH_FRONTEND_SUCCESS_URI}
2424
OAUTH_FRONTEND_SIGNUP_URI: ${OAUTH_FRONTEND_SIGNUP_URI}
2525
OAUTH_FRONTEND_FAILURE_URI: ${OAUTH_FRONTEND_FAILURE_URI}
26+
OAUTH_KAKAO_LOGIN_URL: ${OAUTH_KAKAO_LOGIN_URL}
2627
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS}
2728
COOKIE_SAME_SITE: ${COOKIE_SAME_SITE:-Lax}
2829
COOKIE_DOMAIN: ${COOKIE_DOMAIN:-}

src/main/java/com/example/muneoserver/domain/user/service/oauth/OAuth2LoginServiceImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
@RequiredArgsConstructor
2727
@Transactional
2828
public class OAuth2LoginServiceImpl implements OAuth2LoginService {
29-
private static final String KAKAO_OAUTH_START_URL = "https://api.muneo.ai.kr/oauth2/authorization/kakao";
30-
3129
private final UserRepository userRepository;
3230
private final JwtTokenProvider jwtTokenProvider;
3331
private final RefreshTokenStore refreshTokenStore;
@@ -37,7 +35,7 @@ public class OAuth2LoginServiceImpl implements OAuth2LoginService {
3735

3836
@Override
3937
public String getKakaoLoginUrl() {
40-
return KAKAO_OAUTH_START_URL;
38+
return securityProperties.oauth().kakaoLoginUrl();
4139
}
4240

4341
@Override

src/main/java/com/example/muneoserver/global/security/config/SecurityProperties.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public record Cookie(
5353
}
5454

5555
public record Oauth(
56+
String kakaoLoginUrl,
5657
String frontendSuccessUri,
5758
String frontendSignupUri,
5859
String frontendFailureUri,

src/main/resources/application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ app:
6868
domain: ${COOKIE_DOMAIN:}
6969
secure: ${COOKIE_SECURE:false}
7070
oauth:
71+
kakao-login-url: ${OAUTH_KAKAO_LOGIN_URL:https://api.muneo.ai.kr/oauth2/authorization/kakao}
7172
frontend-success-uri: ${OAUTH_FRONTEND_SUCCESS_URI:http://localhost:3000/auth/callback/success}
7273
frontend-signup-uri: ${OAUTH_FRONTEND_SIGNUP_URI:http://localhost:3000/auth/callback/signup}
7374
frontend-failure-uri: ${OAUTH_FRONTEND_FAILURE_URI:http://localhost:3000/auth/callback/error}

0 commit comments

Comments
 (0)