Skip to content

Commit

Permalink
fix: 카카오 로그인 Get에서 Post로 변경
Browse files Browse the repository at this point in the history
- 민감한 정보를 URL에 포함하지 않기 위해 POST로 변경
  • Loading branch information
khee2 committed Jul 25, 2024
1 parent 50f5d92 commit 555b767
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;
Expand All @@ -26,7 +23,7 @@ public class KakaoAuthController {
@Value("${spring.security.oauth2.client.registration.kakao.redirect-uri}")
private String redirectUri;

@GetMapping("/kakao-login-info")
@PostMapping("/kakao-login-info")
public ResponseEntity<Map<String, String>> getKakaoConfig() {
Map<String, String> config = new HashMap<>();
config.put("clientId", clientId);
Expand Down

0 comments on commit 555b767

Please sign in to comment.