Skip to content

Commit

Permalink
Merge pull request #64 from 0-wook/develop
Browse files Browse the repository at this point in the history
update
  • Loading branch information
0-wook authored Feb 15, 2024
2 parents 9a759c9 + 0ca2af9 commit f06d5d8
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ protected void configure(HttpSecurity http) throws Exception {
.userService(customOAuth2UserService)
.and()
// .defaultSuccessUrl("http://localhost:3000/home"); // local settings
.defaultSuccessUrl("/home");
.defaultSuccessUrl("/home"); // prod settings
}
}
4 changes: 2 additions & 2 deletions app/admin-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spring:
scope: profile, email
client-id: ${GOOGLE_OAUTH2_CLIENT_ID}
client-secret: ${GOOGLE_OAUTH2_CLIENT_SECRET}
redirect-uri: "https://admin.wsautoml.com/login/oauth2/code/google"
redirect-uri: "https://admin.wsautoml.com/login/oauth2/code/google" # prod settings // local settings에서는 주석 처리 할 것

session:
store-type: jdbc
Expand All @@ -80,7 +80,7 @@ spring:
config:
activate:
# on-profile: local # local settings
on-profile: prod
on-profile: prod # prod settings

datasource:
url: jdbc:mariadb://${DATABASE_URL}:3306/automl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,25 @@ spring:
scope: profile, email
client-id: # 여기에 입력
client-secret: # 여기에 입력

cloud:
aws:
credentials:
accessKey: # 여기에 입력
secretKey: # 여기에 입력
s3:
bucketName: # 여기에 입력
secondBucketName: # 여기에 입력
spring:
security:
oauth2:
client:
registration:
google:
scope: profile, email
client-id: # 여기에 입력
client-secret: # 여기에 입력
datasource:
url: # 여기에 입력
username: # 여기에 입력
password: # 여기에 입력
2 changes: 1 addition & 1 deletion app/admin-web/src/components/presentational/LoginCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function LoginCard() {
// } // local settings
onClick={() =>
(window.location.href = "/oauth2/authorization/google")
}
} // prod settings
/>
</Box>
</CardContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected void configure(HttpSecurity http) throws Exception {
.userInfoEndpoint()
.userService(customOAuth2UserService)
.and()
.defaultSuccessUrl("/");
.defaultSuccessUrl("/"); // prod settings
// .defaultSuccessUrl("http://localhost:3000"); // local settings
}
}
4 changes: 2 additions & 2 deletions app/user-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spring:
scope: profile, email
client-id: ${GOOGLE_OAUTH2_CLIENT_ID}
client-secret: ${GOOGLE_OAUTH2_CLIENT_SECRET}
redirect-uri: "https://wsautoml.com/login/oauth2/code/google"
redirect-uri: "https://wsautoml.com/login/oauth2/code/google" # prod settings // local settings에서는 주석 처리 할 것

logging:
level:
Expand All @@ -72,7 +72,7 @@ spring:
config:
activate:
# on-profile: local # local settings
on-profile: prod
on-profile: prod # prod settings

datasource:
url: jdbc:mariadb://${DATABASE_URL}:3306/automl
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cloud:
aws:
credentials:
accessKey: # 여기에 입력
secretKey: # 여기에 입력
s3:
bucketName: # 여기에 입력
secondBucketName: # 여기에 입력
spring:
datasource:
url: # 여기에 입력
username: # 여기에 입력
password: # 여기에 입력
security:
oauth2:
client:
registration:
google:
scope: profile, email
client-id: # 여기에 입력
client-secret: # 여기에 입력
2 changes: 1 addition & 1 deletion app/user-web/src/components/presentational/LoginCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function LoginCard() {
// } // local settings
onClick={() =>
(window.location.href = "/oauth2/authorization/google")
}
} // prod settings
/>
</Box>
</CardContent>
Expand Down

0 comments on commit f06d5d8

Please sign in to comment.