diff --git a/src/main/java/com/splanet/splanet/config/SecurityConfig.java b/src/main/java/com/splanet/splanet/config/SecurityConfig.java index b4f66fdc..ac9357f6 100644 --- a/src/main/java/com/splanet/splanet/config/SecurityConfig.java +++ b/src/main/java/com/splanet/splanet/config/SecurityConfig.java @@ -42,6 +42,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti http .csrf(csrf -> csrf.disable()) .authorizeHttpRequests(auth -> auth + .requestMatchers("/error").permitAll() .anyRequest().permitAll() ) .oauth2Login(oauth2 -> oauth2 diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index de4b879d..d806ed3d 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -18,3 +18,8 @@ spring: registration: kakao: redirect-uri: http://localhost:8080/login/oauth2/code/kakao + +logging: + level: + org.springframework.security: TRACE + org.hibernate.engine.internal.StatisticalLoggingSessionEventListener: OFF diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 6323a12c..1e013057 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -18,3 +18,8 @@ spring: registration: kakao: redirect-uri: https://api.splanet.co.kr/login/oauth2/code/kakao + +logging: + level: + org.springframework.security: INFO + org.hibernate.engine.internal.StatisticalLoggingSessionEventListener: OFF diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 1b91458c..17f75372 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -34,12 +34,6 @@ spring: scope: profile_nickname, profile_image, account_email client-name: Kakao -logging: - level: - org.springframework.security: TRACE - org.hibernate.engine.internal.StatisticalLoggingSessionEventListener: OFF - - springdoc: swagger-ui: path: /swagger