Skip to content

Commit e468a14

Browse files
authored
🐛 fix: 테스트 시 security 설정이 되어 있지 않아 발생하는 오류 수정 (#27)
1 parent 5d6071c commit e468a14

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
contents: read
1010
env:
1111
PROJECT_DIR: backend
12+
KAKAO_CLIENT: ${{ secrets.KAKAO_CLIENT }}
13+
KAKAO_SECRET: ${{ secrets.KAKAO_SECRET }}
1214
steps:
1315
- uses: actions/checkout@v4
1416

backend/src/test/resources/application.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ spring:
88
init:
99
mode: never
1010

11+
security:
12+
oauth2:
13+
client:
14+
registration:
15+
kakao:
16+
client-name: Kakao
17+
client-id: ${KAKAO_CLIENT}
18+
client-secret: ${KAKAO_SECRET}
19+
redirect-uri: "{baseUrl}/{action}/oauth2/code/{registrationId}"
20+
authorization-grant-type: authorization_code
21+
client-authentication-method: client_secret_post
22+
provider:
23+
kakao:
24+
authorization-uri: https://kauth.kakao.com/oauth/authorize
25+
token-uri: https://kauth.kakao.com/oauth/token
26+
user-info-uri: https://kapi.kakao.com/v2/user/me
27+
user-name-attribute: id
28+
1129
file:
1230
thumbnail-path : images/thumbnail/ # 이후 배포 환경에서는 바꾸면 될 듯
1331
default-thumbnail-url: /images/thumbnail/default.png

0 commit comments

Comments
 (0)