Skip to content

Commit

Permalink
[feat] test application.yml에 설정값 추가
Browse files Browse the repository at this point in the history
test application.yml에 설정값 추가
  • Loading branch information
liyusang1 committed Jan 8, 2024
1 parent 17374be commit b8157ee
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
spring:
config:
import: optional:file:.env[.properties]
datasource:
driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver
url: jdbc:tc:mysql:8:///tripcometrue?characterEncoding=UTF-8&serverTimezone=Asia/Seoul
Expand All @@ -17,6 +19,51 @@ spring:
host: localhost
port: 6379

security:
oauth2:
client:
registration:
google:
client-id: ${GOOGLE_ID}
client-secret: ${GOOGLE_KEY}
scope:
- email
- profile

naver:
client-id: ${NAVER_ID}
client-secret: ${NAVER_KEY}
scope:
- name
- email
client-name: Naver
authorization-grant-type: authorization_code
redirect-uri: http://localhost:8080/login/oauth2/code/naver

kakao:
client-id: ${KAKAO_ID}
client-secret: ${KAKAO_KEY}
client-authentication-method: client_secret_post
redirect-uri: http://localhost:8080/login/oauth2/code/kakao
authorization-grant-type: authorization_code
client-name: Kakao
scope:
- profile_nickname
- account_email
- profile_image

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

logging:
level:
"[org.springframework.security]": DEBUG

0 comments on commit b8157ee

Please sign in to comment.