|
3 | 3 | import java.util.List; |
4 | 4 | import java.util.Map; |
5 | 5 |
|
6 | | -import org.springframework.beans.factory.annotation.Value; |
7 | 6 | import org.springframework.http.*; |
8 | 7 | import org.springframework.security.core.authority.SimpleGrantedAuthority; |
9 | 8 | import org.springframework.util.LinkedMultiValueMap; |
|
18 | 17 | import io.swagger.v3.oas.annotations.Hidden; |
19 | 18 | import io.swagger.v3.oas.annotations.Operation; |
20 | 19 | import io.swagger.v3.oas.annotations.tags.Tag; |
21 | | -import org.jetbrains.annotations.NotNull; |
22 | 20 | import umc.codeplay.apiPayLoad.code.status.ErrorStatus; |
23 | 21 | import umc.codeplay.apiPayLoad.exception.handler.GeneralHandler; |
24 | 22 | import umc.codeplay.config.properties.BaseOAuthProperties; |
|
36 | 34 | @Tag(name = "oauth-controller", description = "외부 소셜 로그인 서비스 연동 API, JWT 토큰 헤더 포함을 필요로 하지 않습니다.") |
37 | 35 | public class OAuthController { |
38 | 36 |
|
39 | | - @Value("${frontend.url}") |
40 | | - private static String targetOrigin; |
41 | | - |
42 | 37 | private final JwtUtil jwtUtil; |
43 | 38 | private final RestTemplate restTemplate = new RestTemplate(); |
44 | 39 | private final GoogleOAuthProperties googleOAuthProperties; |
@@ -126,8 +121,9 @@ public ResponseEntity<String> OAuthCallback( |
126 | 121 | // .build()); |
127 | 122 | } |
128 | 123 |
|
129 | | - private static @NotNull String getString( |
130 | | - String serviceAccessToken, String serviceRefreshToken, String email) { |
| 124 | + String targetOrigin = "https://code-play-fe.vercel.app"; |
| 125 | + |
| 126 | + private String getString(String serviceAccessToken, String serviceRefreshToken, String email) { |
131 | 127 | String jsonData = |
132 | 128 | String.format( |
133 | 129 | "{ \"accessToken\": \"%s\", \"refreshToken\": \"%s\", \"email\": \"%s\" }", |
|
0 commit comments