Skip to content

Commit 10f33f3

Browse files
committed
chore: oauth2 dev, profile 변수 분리
1 parent c381e0e commit 10f33f3

File tree

2 files changed

+50
-14
lines changed

2 files changed

+50
-14
lines changed

src/main/resources/application-dev.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ spring:
2121
registration:
2222
naver:
2323
client-name: naver
24-
client-id: ${naver.client-id}
25-
client-secret: ${naver.client-secret}
26-
redirect-uri: ${naver.redirect-uri}
24+
client-id: ${naver.dev.client-id}
25+
client-secret: ${naver.dev.client-secret}
26+
redirect-uri: ${naver.dev.redirect-uri}
2727
authorization-grant-type: authorization_code
2828
scope:
2929
- name
@@ -32,17 +32,35 @@ spring:
3232

3333
google:
3434
client-name: google
35-
client-id: ${google.client-id}
36-
client-secret: ${google.client-secret}
37-
redirect-uri: ${google.redirect-uri}
35+
client-id: ${google.dev.client-id}
36+
client-secret: ${google.dev.client-secret}
37+
redirect-uri: ${google.dev.redirect-uri}
3838
authorization-grant-type: authorization_code
3939
scope:
4040
- profile
4141
- email
4242

43+
kakao:
44+
client-id: ${kakao.dev.client-id}
45+
client-secret: ${kakao.dev.client-secret}
46+
redirect-uri: ${kakao.dev.redirect-uri}
47+
client-authentication-method: client_secret_post
48+
authorization-grant-type: authorization_code
49+
scope:
50+
- profile_nickname
51+
- profile_image
52+
- account_email
53+
client-name: kakao
54+
4355
provider:
4456
naver:
4557
authorization-uri: https://nid.naver.com/oauth2.0/authorize
4658
token-uri: https://nid.naver.com/oauth2.0/token
4759
user-info-uri: https://openapi.naver.com/v1/nid/me
48-
user-name-attribute: response
60+
user-name-attribute: response
61+
62+
kakao:
63+
authorization-uri: https://kauth.kakao.com/oauth/authorize
64+
token-uri: https://kauth.kakao.com/oauth/token
65+
user-info-uri: https://kapi.kakao.com/v2/user/me
66+
user-name-attribute: id

src/main/resources/application-prod.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ spring:
2121
registration:
2222
naver:
2323
client-name: naver
24-
client-id: ${naver.client-id}
25-
client-secret: ${naver.client-secret}
26-
redirect-uri: ${naver.redirect-uri}
24+
client-id: ${naver.prod.client-id}
25+
client-secret: ${naver.prod.client-secret}
26+
redirect-uri: ${naver.prod.redirect-uri}
2727
authorization-grant-type: authorization_code
2828
scope:
2929
- name
@@ -32,17 +32,35 @@ spring:
3232

3333
google:
3434
client-name: google
35-
client-id: ${google.client-id}
36-
client-secret: ${google.client-secret}
37-
redirect-uri: ${google.redirect-uri}
35+
client-id: ${google.prod.client-id}
36+
client-secret: ${google.prod.client-secret}
37+
redirect-uri: ${google.prod.redirect-uri}
3838
authorization-grant-type: authorization_code
3939
scope:
4040
- profile
4141
- email
4242

43+
kakao:
44+
client-id: ${kakao.prod.client-id}
45+
client-secret: ${kakao.prod.client-secret}
46+
redirect-uri: ${kakao.prod.redirect-uri}
47+
client-authentication-method: client_secret_post
48+
authorization-grant-type: authorization_code
49+
scope:
50+
- profile_nickname
51+
- profile_image
52+
- account_email
53+
client-name: kakao
54+
4355
provider:
4456
naver:
4557
authorization-uri: https://nid.naver.com/oauth2.0/authorize
4658
token-uri: https://nid.naver.com/oauth2.0/token
4759
user-info-uri: https://openapi.naver.com/v1/nid/me
48-
user-name-attribute: response
60+
user-name-attribute: response
61+
62+
kakao:
63+
authorization-uri: https://kauth.kakao.com/oauth/authorize
64+
token-uri: https://kauth.kakao.com/oauth/token
65+
user-info-uri: https://kapi.kakao.com/v2/user/me
66+
user-name-attribute: id

0 commit comments

Comments
 (0)