OAuth 로그인 401 오류 발생합니다 (해결완료)

다음과 같이 application.yml 설정했습니다.
표시되는 오류입니다.

[invalid_token_response] An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: 401 Unauthorized: [no body]

ID는 831089 입니다.

2022-11-28T21:49:39.854+09:00 DEBUG 23472 --- [nio-8082-exec-7] o.s.web.client.RestTemplate              : HTTP POST https://kauth.kakao.com/oauth/token
2022-11-28T21:49:39.856+09:00 DEBUG 23472 --- [nio-8082-exec-7] o.s.web.client.RestTemplate              : Accept=[application/json, application/*+json]
2022-11-28T21:49:39.857+09:00 DEBUG 23472 --- [nio-8082-exec-7] o.s.web.client.RestTemplate              : Writing [{grant_type=[authorization_code], code=[De6AaBACKTXk11WVEfvnwQPyNBq4hIozvhwX_lflcVPaDuvL8F_uQFgFMc4ysPVaTLtlFgorDNIAAAGEvkkz0A], redirect_uri=[http://localhost:8082/login/oauth2/code/kakao], client_id=[847e0a87c36e519763d3b5881a2c2d8f]}] as "application/x-www-form-urlencoded;charset=UTF-8"
2022-11-28T21:49:39.945+09:00 DEBUG 23472 --- [nio-8082-exec-7] o.s.web.client.RestTemplate              : Response 401 UNAUTHORIZED

          kakao:
            client-id: 111111111
            client-secret: 22222222222222
            authorization-grant-type: authorization_code
            redirect-uri: "{baseUrl}/login/oauth2/code/{registrationId}"
            scope:
              - profile_nickname
              - profile_image
              - account_email
            client-name: kakao
            client-authentication-method: POST
        provider:
          kakao:
            authorization-uri: https://kauth.kakao.com/oauth/authorize
            token-uri: https://kauth.kakao.com/oauth/token
            user-info-uri: https://kapi.kakao.com/v2/user/me
            user-name-attribute: id

해결했습니다.

  • [내 애플리케이션] > 제품 설정> [카카오 로그인] 에 들어가서
    secret Key 활성화 상태: 사용안함으로 설정하면 됩니다.
    image