Skip to content

Commit

Permalink
chore: 구글 oauth env 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoya324 committed Mar 1, 2025
1 parent 59513aa commit cb03931
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ public record GoogleProperties(
String clientSecret,
String scope
) {

}
10 changes: 10 additions & 0 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ auth:
access-token-secret: ${JWT_ACCESS_TOKEN_SECRET:secret}
access-token-expiration-time: ${JWT_ACCESS_TOKEN_EXPIRATION_TIME:7200}
refresh-token-expiration-time: ${REFRESH_TOKEN_EXPIRATION_TIME}

oauth:
google:
authorizationUri: ${GOOGLE_AUTHORIZATION_URL}
tokenUri: ${GOOGLE_OAUTH_TOKEN_URI}
redirectUri: ${GOOGLE_OAUTH_REDIRECT_URI}
userInfoUrl: ${GOOGLE_OAUTH_USER_INFO_URL}
clientId: ${GOOGLE_OAUTH_CLIENT_ID}
clientSecret: ${GOOGLE_OAUTH_CLIENT_SECRET}
scope: ${GOOGLE_OAUTH_SCOPE}
10 changes: 10 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ auth:
access-token-secret: ${JWT_ACCESS_TOKEN_SECRET:secret}
access-token-expiration-time: ${JWT_ACCESS_TOKEN_EXPIRATION_TIME:7200}
refresh-token-expiration-time: ${REFRESH_TOKEN_EXPIRATION_TIME}

oauth:
google:
authorizationUri: ${GOOGLE_AUTHORIZATION_URL}
tokenUri: ${GOOGLE_OAUTH_TOKEN_URI}
redirectUri: ${GOOGLE_OAUTH_REDIRECT_URI}
userInfoUrl: ${GOOGLE_OAUTH_USER_INFO_URL}
clientId: ${GOOGLE_OAUTH_CLIENT_ID}
clientSecret: ${GOOGLE_OAUTH_CLIENT_SECRET}
scope: ${GOOGLE_OAUTH_SCOPE}
10 changes: 10 additions & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ auth:
access-token-secret: ${JWT_ACCESS_TOKEN_SECRET:secret}
access-token-expiration-time: ${JWT_ACCESS_TOKEN_EXPIRATION_TIME:7200}
refresh-token-expiration-time: ${REFRESH_TOKEN_EXPIRATION_TIME}

oauth:
google:
authorizationUri: ${GOOGLE_AUTHORIZATION_URL}
tokenUri: ${GOOGLE_OAUTH_TOKEN_URI}
redirectUri: ${GOOGLE_OAUTH_REDIRECT_URI}
userInfoUrl: ${GOOGLE_OAUTH_USER_INFO_URL}
clientId: ${GOOGLE_OAUTH_CLIENT_ID}
clientSecret: ${GOOGLE_OAUTH_CLIENT_SECRET}
scope: ${GOOGLE_OAUTH_SCOPE}

0 comments on commit cb03931

Please sign in to comment.