본문 바로가기
오류 모음

java.lang.IllegalArgumentException: This class supports `client_secret_basic`, `client_secret_post`, and `none` by default. Client [kakao] is using [POST] instead. Please use a supported client authentication method, or use `setRequestEntityConverter` to

by sgyeong 2025. 8. 25.

 

 

카카오 소셜 로그인 구현 중 발생한 에러이다. 필수/선택 항목 동의 후 넘어가는 단계에서 발생하였다.

 

 

 

 This class supports `client_secret_basic`, `client_secret_post`, and `none` by default. Client [kakao] is using [POST] instead. Please use a supported client authentication method, or use `setRequestEntityConverter` to supply an instance that supports

 

 

기본적으로 client_secret_basic, client_secret_post, none 방식의 클라이언트 인증 방법을 지원한다. 그러나 클라이언트는 POST방식으로 인증을 시도하고 있다.

 

지원되는 인증 방법을 사용하거나, setRequestEntityConverter 메서드를 사용해야 한다고 한다.

 

 

해결 방법

 

client-authentication-method 를 POST에서 client_secret_post 로 변경하여 해결하였다.

 

 

 

 

 

 

 

 

참고

 

https://docs.spring.io/spring-security/reference/servlet/oauth2/client/client-authentication.html#_authenticate_using_client_secret_post

 

Client Authentication Support :: Spring Security

Please refer to JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants for further details on JWT Bearer Client Authentication. The default implementation for JWT Bearer Client Authentication is NimbusJwtClientAuthenticat

docs.spring.io