diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index af8563c..4734a33 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -27,6 +27,22 @@ spring: detection-strategy: annotated thymeleaf3: decoupled-logic: true + security: + oauth2: + client: + registration: + kakao: + client-id: ${KAKAO_OAUTH_CLIENT_ID} + client-secret: ${KAKAO_OAUTH_CLIENT_SECRET} + authorization-grant-type: authorization_code + redirect-uri: "{baseUrl}/login/oauth2/code/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 ---