-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7778832
commit 6f81961
Showing
108 changed files
with
2,183 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Fri Aug 09 17:33:28 KST 2024 | ||
gradle.version=8.8 |
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Getting Started | ||
|
||
### Reference Documentation | ||
For further reference, please consider the following sections: | ||
|
||
* [Official Gradle documentation](https://docs.gradle.org) | ||
* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/3.3.2/gradle-plugin) | ||
* [Create an OCI image](https://docs.spring.io/spring-boot/3.3.2/gradle-plugin/packaging-oci-image.html) | ||
* [Spring Web](https://docs.spring.io/spring-boot/docs/3.3.2/reference/htmlsingle/index.html#web) | ||
|
||
### Guides | ||
The following guides illustrate how to use some features concretely: | ||
|
||
* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) | ||
* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) | ||
* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/) | ||
|
||
### Additional Links | ||
These additional references should also help you: | ||
|
||
* [Gradle Build Scans – insights for your project's build](https://scans.gradle.com#gradle) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.springframework.boot' version '3.0.5' | ||
id 'io.spring.dependency-management' version '1.1.3' | ||
} | ||
|
||
group = 'com.example' | ||
version = '0.0.1-SNAPSHOT' | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
|
||
configurations { | ||
compileOnly { | ||
extendsFrom annotationProcessor | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'mysql:mysql-connector-java:8.0.26' | ||
runtimeOnly 'com.mysql:mysql-connector-j' | ||
|
||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
implementation 'org.springframework.boot:spring-boot-starter-security' | ||
implementation 'org.springframework.boot:spring-boot-starter-validation' | ||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | ||
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' | ||
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' | ||
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0' | ||
|
||
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client:2.7.4' | ||
|
||
compileOnly 'org.projectlombok:lombok' | ||
annotationProcessor 'org.projectlombok:lombok' | ||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | ||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' | ||
|
||
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.2' | ||
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.2' | ||
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.2' | ||
} | ||
|
||
tasks.named('test') { | ||
useJUnitPlatform() | ||
} |
Binary file added
BIN
+903 Bytes
server/build/classes/java/main/com/example/hackathon/HackathonApplication.class
Binary file not shown.
Binary file added
BIN
+993 Bytes
server/build/classes/java/main/com/example/hackathon/config/AppProperties$Auth.class
Binary file not shown.
Binary file added
BIN
+1.06 KB
server/build/classes/java/main/com/example/hackathon/config/AppProperties$OAuth2.class
Binary file not shown.
Binary file added
BIN
+1.07 KB
server/build/classes/java/main/com/example/hackathon/config/AppProperties.class
Binary file not shown.
Binary file added
BIN
+9.97 KB
server/build/classes/java/main/com/example/hackathon/config/SecurityConfig.class
Binary file not shown.
Binary file added
BIN
+2.87 KB
server/build/classes/java/main/com/example/hackathon/config/SwaggerConfig.class
Binary file not shown.
Binary file added
BIN
+1.76 KB
server/build/classes/java/main/com/example/hackathon/config/WebMvcConfig.class
Binary file not shown.
Binary file added
BIN
+807 Bytes
server/build/classes/java/main/com/example/hackathon/exception/BadRequestException.class
Binary file not shown.
Binary file added
BIN
+722 Bytes
...s/java/main/com/example/hackathon/exception/OAuth2AuthenticationProcessingException.class
Binary file not shown.
Binary file added
BIN
+1.28 KB
...r/build/classes/java/main/com/example/hackathon/exception/ResourceNotFoundException.class
Binary file not shown.
Binary file added
BIN
+1.41 KB
server/build/classes/java/main/com/example/hackathon/oauth/model/AuthProvider.class
Binary file not shown.
Binary file added
BIN
+911 Bytes
server/build/classes/java/main/com/example/hackathon/oauth/payload/ApiResponse.class
Binary file not shown.
Binary file added
BIN
+890 Bytes
server/build/classes/java/main/com/example/hackathon/oauth/payload/AuthResponse.class
Binary file not shown.
Binary file added
BIN
+1020 Bytes
server/build/classes/java/main/com/example/hackathon/oauth/payload/LoginRequest.class
Binary file not shown.
Binary file added
BIN
+1.21 KB
server/build/classes/java/main/com/example/hackathon/oauth/payload/SignUpRequest.class
Binary file not shown.
Binary file added
BIN
+544 Bytes
server/build/classes/java/main/com/example/hackathon/oauth/security/CurrentUser.class
Binary file not shown.
Binary file added
BIN
+3.5 KB
...ild/classes/java/main/com/example/hackathon/oauth/security/CustomUserDetailsService.class
Binary file not shown.
Binary file added
BIN
+1.59 KB
...classes/java/main/com/example/hackathon/oauth/security/RestAuthenticationEntryPoint.class
Binary file not shown.
Binary file added
BIN
+3.92 KB
...ld/classes/java/main/com/example/hackathon/oauth/security/TokenAuthenticationFilter.class
Binary file not shown.
Binary file added
BIN
+4.12 KB
server/build/classes/java/main/com/example/hackathon/oauth/security/TokenProvider.class
Binary file not shown.
Binary file added
BIN
+3.66 KB
server/build/classes/java/main/com/example/hackathon/oauth/security/UserPrincipal.class
Binary file not shown.
Binary file added
BIN
+5.78 KB
...asses/java/main/com/example/hackathon/oauth/security/oauth2/CustomOAuth2UserService.class
Binary file not shown.
Binary file added
BIN
+4.23 KB
...mple/hackathon/oauth/security/oauth2/HttpCookieOAuth2AuthorizationRequestRepository.class
Binary file not shown.
Binary file added
BIN
+3.46 KB
...main/com/example/hackathon/oauth/security/oauth2/OAuth2AuthenticationFailureHandler.class
Binary file not shown.
Binary file added
BIN
+6.69 KB
...main/com/example/hackathon/oauth/security/oauth2/OAuth2AuthenticationSuccessHandler.class
Binary file not shown.
Binary file added
BIN
+1.42 KB
...s/java/main/com/example/hackathon/oauth/security/oauth2/user/FacebookOAuth2UserInfo.class
Binary file not shown.
Binary file added
BIN
+2 KB
.../classes/java/main/com/example/hackathon/oauth/security/oauth2/user/GithubEmailInfo.class
Binary file not shown.
Binary file added
BIN
+1.22 KB
...ses/java/main/com/example/hackathon/oauth/security/oauth2/user/GithubOAuth2UserInfo.class
Binary file not shown.
Binary file added
BIN
+1.17 KB
...ses/java/main/com/example/hackathon/oauth/security/oauth2/user/GoogleOAuth2UserInfo.class
Binary file not shown.
Binary file added
BIN
+1.17 KB
...sses/java/main/com/example/hackathon/oauth/security/oauth2/user/KakaoOAuth2UserInfo.class
Binary file not shown.
Binary file added
BIN
+1.17 KB
...sses/java/main/com/example/hackathon/oauth/security/oauth2/user/NaverOAuth2UserInfo.class
Binary file not shown.
Binary file added
BIN
+935 Bytes
...d/classes/java/main/com/example/hackathon/oauth/security/oauth2/user/OAuth2UserInfo.class
Binary file not shown.
Binary file added
BIN
+6.45 KB
...es/java/main/com/example/hackathon/oauth/security/oauth2/user/OAuth2UserInfoFactory.class
Binary file not shown.
Binary file added
BIN
+3.41 KB
server/build/classes/java/main/com/example/hackathon/oauth/util/CookieUtils.class
Binary file not shown.
Binary file added
BIN
+630 Bytes
server/build/classes/java/main/com/example/hackathon/s3/AwsS3.class
Binary file not shown.
Binary file added
BIN
+1.81 KB
server/build/classes/java/main/com/example/hackathon/s3/AwsS3Config.class
Binary file not shown.
Binary file added
BIN
+5.46 KB
server/build/classes/java/main/com/example/hackathon/s3/AwsUtils.class
Binary file not shown.
Binary file added
BIN
+1.76 KB
server/build/classes/java/main/com/example/hackathon/s3/controller/AwsController.class
Binary file not shown.
Binary file added
BIN
+2.51 KB
server/build/classes/java/main/com/example/hackathon/user/controller/UserController.class
Binary file not shown.
Binary file added
BIN
+3.07 KB
server/build/classes/java/main/com/example/hackathon/user/model/User.class
Binary file not shown.
Binary file added
BIN
+719 Bytes
server/build/classes/java/main/com/example/hackathon/user/repository/UserRepository.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
#spring.datasource.url=${DB_URL} | ||
#spring.datasource.username=${USERNAME} | ||
#spring.datasource.password=${PASSWORD} | ||
#spring.datasource.driver-class-name=org.mariadb.jdbc.Driver | ||
# | ||
#spring.jpa.show-sql=true | ||
#spring.jpa.hibernate.ddl-auto=update | ||
# | ||
##GoogleOAuth | ||
#spring.security.oauth2.client.registration.google.client-id=${GOOGLE_ID} | ||
#spring.security.oauth2.client.registration.google.client-secret=${GOOGLE_SECRET} | ||
#spring.security.oauth2.client.registration.google.redirect-uri=https://port-0-hackathon-be-lyqylohp8957ca6e.sel5.cloudtype.app/oauth2/callback/google | ||
#spring.security.oauth2.client.registration.google.scope=email,profile | ||
# | ||
##GithubOAuth | ||
#spring.security.oauth2.client.registration.github.client-id=${GITHUB_ID} | ||
#spring.security.oauth2.client.registration.github.client-secret=${GITHUB_SECRET} | ||
#spring.security.oauth2.client.registration.github.redirect-uri=https://port-0-hackathon-be-lyqylohp8957ca6e.sel5.cloudtype.app/oauth2/callback/github | ||
#spring.security.oauth2.client.registration.github.scope=user:email,read:user | ||
# | ||
##KakaoTalk OAuth | ||
#spring.security.oauth2.client.registration.kakao.client-id=${KAKAO_ID} | ||
#spring.security.oauth2.client.registration.kakao.client-secret=${KAKAO_SECRET} | ||
#spring.security.oauth2.client.provider.kakao.authorization-uri=https://kauth.kakao.com/oauth/authorize | ||
#spring.security.oauth2.client.registration.kakao.scope=profile_nickname,profile_image,account_email | ||
#spring.security.oauth2.client.registration.kakao.client-name=kakao-login | ||
#spring.security.oauth2.client.registration.kakao.authorization-grant-type=authorization_code | ||
#spring.security.oauth2.client.registration.kakao.redirect-uri=https://port-0-hackathon-be-lyqylohp8957ca6e.sel5.cloudtype.app/oauth2/callback/kakao | ||
#spring.security.oauth2.client.registration.kakao.client-authentication-method=client_secret_post | ||
#spring.security.oauth2.client.provider.kakao.token-uri=https://kauth.kakao.com/oauth/token | ||
#spring.security.oauth2.client.provider.kakao.user-info-uri=https://kapi.kakao.com/v2/user/me | ||
#spring.security.oauth2.client.provider.kakao.user-name-attribute=id | ||
# | ||
##Naver OAuth | ||
#spring.security.oauth2.client.registration.naver.client-id=${NAVER_ID} | ||
#spring.security.oauth2.client.registration.naver.client-secret=${NAVER_SECRET} | ||
#spring.security.oauth2.client.registration.naver.scope=name, email, profile_image, nickname | ||
#spring.security.oauth2.client.registration.naver.client-name=Naver | ||
#spring.security.oauth2.client.registration.naver.authorization-grant-type=authorization_code | ||
#spring.security.oauth2.client.registration.naver.redirect-uri=https://port-0-hackathon-be-lyqylohp8957ca6e.sel5.cloudtype.app/oauth2/callback/naver | ||
#spring.security.oauth2.client.provider.naver.authorization-uri=https://nid.naver.com/oauth2.0/authorize | ||
#spring.security.oauth2.client.provider.naver.token-uri=https://nid.naver.com/oauth2.0/token | ||
#spring.security.oauth2.client.provider.naver.user-info-uri=https://openapi.naver.com/v1/nid/me | ||
#spring.security.oauth2.client.provider.naver.user-name-attribute=response | ||
# | ||
##AWS | ||
#cloud.aws.credentials.accessKey=${S3_ACCESSKEY} | ||
#cloud.aws.credentials.secretKey=${S3_SECRETKEY} | ||
#cloud.aws.s3.bucket=${BUCKET_NAME} | ||
#cloud.aws.region.static=ap-northeast-2 | ||
#cloud.aws.stack.auto=false | ||
# | ||
#app.auth.tokenSecret=04ca023b39512e46d0c2cf4b48d5aac61d34302994c87ed4eff225dcf3b0a218739f3897051a057f9b846a69ea2927a587044164b7bae5e1306219d50b588cb1 | ||
#app.auth.tokenExpirationMsec = 864000000 | ||
#app.cors.allowedOrigins=http://localhost:3000,http://localhost:8080,https://port-0-hackathon-be-lyqylohp8957ca6e.sel5.cloudtype.app/ | ||
#app.oauth2.authorizedRedirectUris=http://localhost:3000/oauth2/redirect,myandroidapp://oauth2/redirect,myiosapp://oauth2/redirect | ||
|
||
#Spring Data JPA | ||
spring.datasource.url=jdbc:mysql://localhost:3306/hackathon?createDatabaseIfNotExist=true | ||
spring.datasource.username=root | ||
spring.datasource.password=0322 | ||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver | ||
|
||
spring.jpa.show-sql=true | ||
spring.jpa.hibernate.ddl-auto=update | ||
|
||
# spring boot 2.5.x to use script | ||
spring.sql.init.mode=always | ||
# script use after hibernate initilalization | ||
spring.jpa.defer-datasource-initialization=true | ||
|
||
#OAuth2 | ||
#??? | ||
spring.security.oauth2.client.registration.google.client-id=240772131497-d17ho20q4gb42n5s42ncohdh5k9379rc.apps.googleusercontent.com | ||
spring.security.oauth2.client.registration.google.client-secret=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 | ||
spring.security.oauth2.client.registration.google.redirect-uri=http://glogglogglog-env.eba-fuksumx7.ap-northeast-2.elasticbeanstalk.com/oauth2/callback/google | ||
spring.security.oauth2.client.registration.google.scope=email,profile | ||
|
||
spring.security.oauth2.client.registration.github.client-id=4260b239158564b38116 | ||
spring.security.oauth2.client.registration.github.client-secret=40bbeeda1c6175ec4819cf96e427e631e7b5aa8e | ||
spring.security.oauth2.client.registration.github.redirect-uri=http://localhost:8080/oauth2/callback/github | ||
spring.security.oauth2.client.registration.github.scope=user:email,read:user | ||
|
||
app.auth.tokenSecret=04ca023b39512e46d0c2cf4b48d5aac61d34302994c87ed4eff225dcf3b0a218739f3897051a057f9b846a69ea2927a587044164b7bae5e1306219d50b588cb1 | ||
app.auth.tokenExpirationMsec = 864000000 | ||
app.cors.allowedOrigins=https://glog-beta.vercel.app,http://localhost:3000,http://localhost:8080 | ||
app.oauth2.authorizedRedirectUris=https://glog-beta.vercel.app/oauth2/redirect,http://localhost:3000/oauth2/redirect,myandroidapp://oauth2/redirect,myiosapp://oauth2/redirect | ||
app.GitHub.gitHubToken=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 | ||
|
||
#AWS | ||
cloud.aws.credentials.accessKey=AKIA6ODUZVK7N2P6RB6C | ||
cloud.aws.credentials.secretKey=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 | ||
cloud.aws.s3.bucket=glog-image-bucket | ||
cloud.aws.region.static=ap-northeast-2 | ||
cloud.aws.stack.auto=false |
Binary file added
BIN
+9.96 KB
server/build/tmp/compileJava/compileTransaction/stash-dir/SecurityConfig.class.uniqueId0
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.