diff --git a/Gathering_be/build.gradle b/Gathering_be/build.gradle index c6ab5f0..575ef4e 100644 --- a/Gathering_be/build.gradle +++ b/Gathering_be/build.gradle @@ -53,7 +53,6 @@ dependencies { implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-hibernate6' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' - implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' } tasks.named('test') { diff --git a/Gathering_be/src/main/java/com/Gathering_be/global/config/SecurityConfig.java b/Gathering_be/src/main/java/com/Gathering_be/global/config/SecurityConfig.java index c22fada..5be2d87 100644 --- a/Gathering_be/src/main/java/com/Gathering_be/global/config/SecurityConfig.java +++ b/Gathering_be/src/main/java/com/Gathering_be/global/config/SecurityConfig.java @@ -9,7 +9,6 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.annotation.Order; -import org.springframework.security.config.Customizer; import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; @@ -77,7 +76,6 @@ public SecurityFilterChain apiFilterChain(HttpSecurity httpSecurity) throws Exce .requestMatchers(PERMITTED_API_URL).permitAll() .anyRequest().authenticated() ) - .oauth2Login(Customizer.withDefaults()) .sessionManagement(sessionManagement -> sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS) ) diff --git a/Gathering_be/src/main/resources/application-prod.yml b/Gathering_be/src/main/resources/application-prod.yml index 6449b98..cd52d16 100644 --- a/Gathering_be/src/main/resources/application-prod.yml +++ b/Gathering_be/src/main/resources/application-prod.yml @@ -28,18 +28,6 @@ spring: mail.smtp.auth: true mail.smtp.starttls.enable: true - security: - oauth2: - client: - registration: - google: - client-id: ${PROD_GOOGLE_CLIENT_ID} - client-secret: ${PROD_GOOGLE_CLIENT_SECRET} - redirect-uri: https://gathering.work/auth/google/callback - scope: - - profile - - email - jwt: secret: ${PROD_JWT_SECRET} token-validity-in-seconds: 3600