diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 643745c3..2e488aca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,8 @@ jobs: contents: read env: PROJECT_DIR: backend + KAKAO_CLIENT: ${{ secrets.KAKAO_CLIENT }} + KAKAO_SECRET: ${{ secrets.KAKAO_SECRET }} steps: - uses: actions/checkout@v4 diff --git a/backend/src/test/resources/application.yml b/backend/src/test/resources/application.yml index 713e2b9c..c7b6b358 100644 --- a/backend/src/test/resources/application.yml +++ b/backend/src/test/resources/application.yml @@ -8,6 +8,24 @@ spring: init: mode: never + security: + oauth2: + client: + registration: + kakao: + client-name: Kakao + client-id: ${KAKAO_CLIENT} + client-secret: ${KAKAO_SECRET} + redirect-uri: "{baseUrl}/{action}/oauth2/code/{registrationId}" + authorization-grant-type: authorization_code + client-authentication-method: client_secret_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 + file: thumbnail-path : images/thumbnail/ # 이후 배포 환경에서는 바꾸면 될 듯 default-thumbnail-url: /images/thumbnail/default.png