From 5d55afd20e4f5d98bf295086e5c9055a9e6eba28 Mon Sep 17 00:00:00 2001 From: windeer9 Date: Wed, 24 Jan 2024 16:19:51 +0900 Subject: [PATCH] refact: token time change --- .../green/greenearthforus/securityconfig/SecurityConfig.java | 2 +- server/src/main/resources/application.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/com/green/greenearthforus/securityconfig/SecurityConfig.java b/server/src/main/java/com/green/greenearthforus/securityconfig/SecurityConfig.java index 117db878..c8365c01 100644 --- a/server/src/main/java/com/green/greenearthforus/securityconfig/SecurityConfig.java +++ b/server/src/main/java/com/green/greenearthforus/securityconfig/SecurityConfig.java @@ -73,7 +73,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .antMatchers(HttpMethod.DELETE, "/user/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.POST, "/post/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.PATCH, "/post/**").hasAnyRole("ADMIN", "USER") - .antMatchers(HttpMethod.DELETE, "/post/**").hasAnyRole("ADMIN", "USER") +// .antMatchers(HttpMethod.DELETE, "/post/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.POST, "/comment/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.PATCH, "/comment/**").hasAnyRole("ADMIN", "USER") .antMatchers(HttpMethod.DELETE, "/comment/**").hasAnyRole("ADMIN", "USER") diff --git a/server/src/main/resources/application.properties b/server/src/main/resources/application.properties index 6909de5b..11eb5d27 100644 --- a/server/src/main/resources/application.properties +++ b/server/src/main/resources/application.properties @@ -8,8 +8,8 @@ config.domain=${S3_DOMAIN} spring.jpa.hibernate.ddl-auto=update secret-key=${JWT_SECRET_KEY} -access-token-expiration-minutes=30 -refresh-token-expiration-minutes=420 +access-token-expiration-minutes=720 +refresh-token-expiration-minutes=1440 aws.accessKeyId=${AWS_ACCESS_KEY} aws.secretKey=${AWS_SECRET_ACCESS_KEY}