Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] OAuth 환경변수를 설정한다 #55

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 38 additions & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,41 @@ spring:
hibernate:
show_sql: false
format_sql: true
default_batch_fetch_size: 50
default_batch_fetch_size: 50
security:
oauth2:
client:
registration:
google:
client-id: ${google.id}
client-secret: ${google.secret}
scope: profile, email

naver:
client-id: ${naver.id}
client-secret: ${naver.secret}
redirect-uri: http://localhost:8080/${auth.action}/oauth2/code/naver
authorization-grant-type: authorization_code
client-name: Naver
scope: name, email

kakao:
client-id: ${kakao.id}
redirect-uri: http://localhost:8080/${auth.action}/oauth2/code/kakao
client-authentication-method: client_secret_post
authorization-grant-type: authorization_code
scope: profile_nickname, profile_image, account_email
client-name: Kakao

provider:
naver:
authorization-uri: https://nid.naver.com/oauth2.0/authorize
token-uri: https://nid.naver.com/oauth2.0/token
user-info-uri: https://openapi.naver.com/v1/nid/me
user-name-attribute: response

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
39 changes: 38 additions & 1 deletion src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,41 @@ spring:
hibernate:
show_sql: false
format_sql: true
default_batch_fetch_size: 50
default_batch_fetch_size: 50
security:
oauth2:
client:
registration:
google:
client-id: ${google.id}
client-secret: ${google.secret}
scope: profile, email

naver:
client-id: ${naver.id}
client-secret: ${naver.secret}
redirect-uri: ${base.url}/${auth.action}/oauth2/code/naver
authorization-grant-type: authorization_code
client-name: Naver
scope: name, email

kakao:
client-id: ${kakao.id}
redirect-uri: ${base.url}/${auth.action}/oauth2/code/kakao
client-authentication-method: client_secret_post
authorization-grant-type: authorization_code
scope: profile_nickname, profile_image, account_email
client-name: Kakao

provider:
naver:
authorization-uri: https://nid.naver.com/oauth2.0/authorize
token-uri: https://nid.naver.com/oauth2.0/token
user-info-uri: https://openapi.naver.com/v1/nid/me
user-name-attribute: response

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
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spring:

logging:
level:
root: debug
root: info
com:
amazonaws:
util:
Expand Down
Loading