http://kauth.kakao.com/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code
주소를 직접 입력 시 정상적으로 로그인이 되지만
카카오 로그인 버튼을 클릭 시 (/oauth2/authorization/kakao
)
return된 url은
http://kauth.kakao.com/oauth/authorize?response_type=code&client_id={client_id}}&scope=profile_nickname%20account_email&state=BOeMwrVq6RNQPlras0qQKAqJG6VnweEpWwuw72VLn-0%3D&redirect_uri={redirect_uri}
로
kauth.kakao.com 에서 연결을 거부했습니다. 라는 문구가 나오면서 redirect_uri로 넘어가지 않습니다.
spring:
security:
oauth2:
client:
registration:
kakao:
client-id: {client_id}
client-secret: {client_secret}
redirect-uri: http://localhost/users/login/oauth2/code/kakao
authorization-grant-type: authorization_code
client-authentication-method: POST
client-name: Kakao
scope:
- profile_nickname
- account_email
provider:
kakao:
authorization-uri: http://kauth.kakao.com/oauth/authorize
token-uri: http://kauth.kakao.com/oauth/token
user-info-uri: https://kapi.kakao.com/v2/user/me
user-name-attribute: id