Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2120626
Authorization feature
johnjal Jan 10, 2025
4c2a6f7
Authentication feature implemented
johnjal Jan 11, 2025
2ce5b38
bug fix
johnjal Jan 11, 2025
a438e4a
fix conflict
johnjal Jan 12, 2025
585ba05
refresh token
johnjal Jan 17, 2025
0c03859
minor issues fixed
johnjal Jan 17, 2025
edb0693
merge
johnjal Jan 22, 2025
629e6ad
google login
johnjal Jan 24, 2025
333d75e
kakao added
johnjal Jan 25, 2025
78c9b70
merge
johnjal Jan 25, 2025
7e96d91
pre merge
johnjal Feb 3, 2025
d09fddd
Merge branch 'Develop' of https://github.com/johnjal/CodePlay-BE into…
johnjal Feb 3, 2025
d1009e7
name attribute deleted
johnjal Feb 6, 2025
76372e6
minor fix
johnjal Feb 6, 2025
7fa4382
conflict resolve
johnjal Feb 9, 2025
1e77ac0
Merge branch 'Develop' of https://github.com/UMC-CodePlay/CodePlay-BE…
johnjal Feb 9, 2025
09aaa97
Merge branch 'Develop' of https://github.com/UMC-CodePlay/CodePlay-BE…
johnjal Feb 12, 2025
2f147c2
Merge branch 'Develop' of https://github.com/UMC-CodePlay/CodePlay-BE…
johnjal Feb 16, 2025
a578b03
Merge branch 'Develop' of https://github.com/UMC-CodePlay/CodePlay-BE…
johnjal Feb 16, 2025
3e0c127
Merge remote-tracking branch 'origin/Develop' into develop
johnjal Feb 18, 2025
9ae497f
sqsfix
johnjal Feb 18, 2025
defdff9
oauthpop
johnjal Feb 20, 2025
ae19c84
Merge branch 'Develop' of https://github.com/UMC-CodePlay/CodePlay-BE…
johnjal Feb 20, 2025
0fa0ede
Merge branch 'develop' into feat-oauthpop
johnjal Feb 20, 2025
3505ad8
frontendurl
johnjal Feb 20, 2025
198eb63
frontendurl
johnjal Feb 20, 2025
a2ca1f0
frontendurl
johnjal Feb 20, 2025
f93362f
Merge branch 'Develop' of https://github.com/UMC-CodePlay/CodePlay-BE…
johnjal Feb 20, 2025
52772f0
merge
johnjal Feb 20, 2025
aa1e4e3
fix
johnjal Feb 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/main/java/umc/codeplay/controller/OAuthController.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.*;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.util.LinkedMultiValueMap;
Expand All @@ -18,7 +17,6 @@
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.jetbrains.annotations.NotNull;
import umc.codeplay.apiPayLoad.code.status.ErrorStatus;
import umc.codeplay.apiPayLoad.exception.handler.GeneralHandler;
import umc.codeplay.config.properties.BaseOAuthProperties;
Expand All @@ -36,9 +34,6 @@
@Tag(name = "oauth-controller", description = "외부 소셜 로그인 서비스 연동 API, JWT 토큰 헤더 포함을 필요로 하지 않습니다.")
public class OAuthController {

@Value("${frontend.url}")
private static String targetOrigin;

private final JwtUtil jwtUtil;
private final RestTemplate restTemplate = new RestTemplate();
private final GoogleOAuthProperties googleOAuthProperties;
Expand Down Expand Up @@ -126,8 +121,9 @@ public ResponseEntity<String> OAuthCallback(
// .build());
}

private static @NotNull String getString(
String serviceAccessToken, String serviceRefreshToken, String email) {
String targetOrigin = "https://code-play-fe.vercel.app";

private String getString(String serviceAccessToken, String serviceRefreshToken, String email) {
String jsonData =
String.format(
"{ \"accessToken\": \"%s\", \"refreshToken\": \"%s\", \"email\": \"%s\" }",
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ spring:
access-key: ${AWS_ACCESS_KEY_ID}
secret-key: ${AWS_SECRET_ACCESS_KEY}

frontend:
url: ${FRONTEND_URL}

s3:
bucket: ${S3_BUCKET}

Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ spring:
access-key: ${AWS_ACCESS_KEY_ID}
secret-key: ${AWS_SECRET_ACCESS_KEY}

frontend:
url: ${FRONTEND_URL}

s3:
bucket: ${S3_BUCKET}

Expand Down