Skip to content

Commit 7d93851

Browse files
committed
feat(kakao): 카카오 OAuth 설정 추가
1 parent 918a5aa commit 7d93851

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/main/resources/application.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,25 @@ spring:
5555
redirect-uri: ${NAVER_REDIRECT_URL}
5656
authorization-grant-type: authorization_code
5757
scope: ${NAVER_SCOPE}
58+
kakao:
59+
client-id: ${KAKAO_CLIENT_ID}
60+
clientSecret: ${KAKAO_CLIENT_SECRET}
61+
redirect-uri: ${KAKAO_REDIRECT_URL}
62+
client-authentication-method: client_secret_post
63+
authorization-grant-type: authorization_code
64+
scope: ${KAKAO_SCOPE}
5865

5966
provider:
6067
naver:
6168
authorization-uri: https://nid.naver.com/oauth2.0/authorize
6269
token-uri: https://nid.naver.com/oauth2.0/token
6370
user-info-uri: https://openapi.naver.com/v1/nid/me
6471
user-name-attribute: response # 네이버 API가 사용자 정보를 "response" 객체 안에 넣어 반환
72+
kakao:
73+
authorization_uri: https://kauth.kakao.com/oauth/authorize
74+
token_uri: https://kauth.kakao.com/oauth/token
75+
user-info-uri: https://kapi.kakao.com/v2/user/me
76+
user_name_attribute: id
6577

6678
web:
6779
locale: ko_KR
@@ -72,7 +84,6 @@ spring:
7284
max-file-size: 8MB
7385
max-request-size: 8MB
7486

75-
7687
schedules:
7788
cron:
7889
updateCommunityBoardDocuments: "0 0 0 * * *"

0 commit comments

Comments
 (0)