카카오 로그인 API 활용 405 에러

디벨로퍼스 앱ID : 885831

2023-07-11T14:56:54.050Z DEBUG 15479 — [http-nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : GET “/login?error”, parameters={masked}
2023-07-11T14:56:54.051Z WARN 15479 — [http-nio-8080-exec-7] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘GET’ is not supported]
2023-07-11T14:56:54.051Z DEBUG 15479 — [http-nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : Completed 405 METHOD_NOT_ALLOWED
2023-07-11T14:56:54.052Z DEBUG 15479 — [http-nio-8080-exec-7] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
2023-07-11T14:56:54.052Z DEBUG 15479 — [http-nio-8080-exec-7] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
2023-07-11T14:56:54.052Z DEBUG 15479 — [http-nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : “ERROR” dispatch for GET “/error?error”, parameters={masked}
2023-07-11T14:56:54.052Z DEBUG 15479 — [http-nio-8080-exec-7] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
2023-07-11T14:56:54.053Z DEBUG 15479 — [http-nio-8080-exec-7] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using ‘application/json’, given [/] and supported [application/json, application/*+json, application/cbor]
2023-07-11T14:56:54.053Z DEBUG 15479 — [http-nio-8080-exec-7] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Tue Jul 11 14:56:54 UTC 2023, status=405, error=Method Not Allowed, path=/login}]
2023-07-11T14:56:54.053Z DEBUG 15479 — [http-nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : Exiting from “ERROR” dispatch, status 405

http://15.165.85.78:8080/oauth2/authorization/kakao
해당 url로 요청을 하면 위와 같이 405 에러가 뜹니다.
왜 /login 쪽으로 이동하는지 잘 모르겠습니다…

안녕하세요.

KOE010 오류가 발생이력이 확인됩니다.
접근 토큰 발급은 POST 요청만 허용합니다. GET으로 요청하신것으로 보입니다.

그외 다른 원인으로도 해당 오류가 발생할 수 있는데요 아래 FAQ를 참고 부탁드립니다.

KOE010 (Bad client credentials) 에러가 발생할 때