-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from SWM-WeLike2Coding/dev_deploy
conf: 운영 서버 배포를 위한 머지 작업
- Loading branch information
Showing
27 changed files
with
1,066 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...a/com/wl2c/elswhereuserservice/domain/oauth/apple/controller/AppleOAuth2V2Controller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.wl2c.elswhereuserservice.domain.oauth.apple.controller; | ||
|
||
import com.wl2c.elswhereuserservice.domain.oauth.apple.service.AppleOAuth2V2Service; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import jakarta.servlet.http.HttpServletResponse; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.io.IOException; | ||
import java.util.Map; | ||
|
||
@Tag(name = "애플 OAuth", description = "애플 OAuth 관련 api") | ||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/v2/oauth2/apple") | ||
public class AppleOAuth2V2Controller { | ||
|
||
private final AppleOAuth2V2Service appleOAuth2V2Service; | ||
|
||
/** | ||
* Apple OAuth 인증 페이지로 리디렉션하는 엔드포인트 | ||
*/ | ||
@GetMapping("/login") | ||
public void redirectToAppleOAuth(HttpServletResponse response) throws IOException { | ||
String authorizationUri = appleOAuth2V2Service.getAuthorizationUri(); | ||
response.sendRedirect(authorizationUri); | ||
} | ||
|
||
/** | ||
* Apple OAuth에서 인증 후 리디렉션될 콜백 엔드포인트 | ||
*/ | ||
@PostMapping("/callback") | ||
public ResponseEntity<?> handleAppleOAuthCallback(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { | ||
return appleOAuth2V2Service.handleAppleOAuthCallback(params, response); | ||
} | ||
} |
214 changes: 0 additions & 214 deletions
214
...main/java/com/wl2c/elswhereuserservice/domain/oauth/apple/service/AppleOAuth2Service.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.