Skip to content

Commit bbf19f2

Browse files
committed
fix: 구글 설정
1 parent cb496ba commit bbf19f2

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Location-based-target-authentication/build.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,21 @@ repositories {
2323
mavenCentral()
2424
}
2525

26+
ext {
27+
set('springSecurityVersion', '6.2.1')
28+
}
29+
2630
dependencies {
2731
// Spring Boot Starters
2832
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
2933
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
3034
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
3135
implementation 'org.springframework.boot:spring-boot-starter-security'
32-
implementation 'org.springframework.security:spring-security-oauth2-client'
33-
implementation 'org.springframework.security:spring-security-oauth2-jose'
36+
implementation "org.springframework.security:spring-security-core:${springSecurityVersion}"
37+
implementation "org.springframework.security:spring-security-web:${springSecurityVersion}"
38+
implementation "org.springframework.security:spring-security-config:${springSecurityVersion}"
39+
implementation "org.springframework.security:spring-security-oauth2-client:${springSecurityVersion}"
40+
implementation "org.springframework.security:spring-security-oauth2-jose:${springSecurityVersion}"
3441
implementation 'org.springframework.boot:spring-boot-starter-validation'
3542
implementation 'org.springframework.boot:spring-boot-starter-web'
3643
implementation 'org.springframework.boot:spring-boot-starter-webflux'

Location-based-target-authentication/src/main/java/com/swyp/global/config/OAuth2Config.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
import org.springframework.beans.factory.annotation.Value;
44
import org.springframework.context.annotation.Bean;
55
import org.springframework.context.annotation.Configuration;
6+
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
67
import org.springframework.security.oauth2.client.registration.ClientRegistration;
78
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository;
89
import org.springframework.security.oauth2.client.registration.InMemoryClientRegistrationRepository;
910
import org.springframework.security.oauth2.core.AuthorizationGrantType;
1011
import org.springframework.security.oauth2.core.ClientAuthenticationMethod;
11-
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
12+
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
13+
import org.springframework.security.web.SecurityFilterChain;
1214

1315
@Configuration
1416
@EnableWebSecurity

Location-based-target-authentication/src/main/java/com/swyp/social_login/service/auth/GoogleAuthImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class GoogleAuthImpl implements GoogleAuthService {
2525
private String clientSecret;
2626
@Value("${spring.security.oauth2.client.registration.google.redirect-uri}")
2727
private String redirectUrl;
28-
@Value("${google.redirect.url.local}")
28+
@Value("${spring.security.oauth2.client.registration.google.redirect-uri-local}")
2929
private String redirectUrlLocal;
3030

3131
private final HttpServletRequest request;

0 commit comments

Comments
 (0)