From bf7b7790a485e664daa80202bc72fe28dcbb37af Mon Sep 17 00:00:00 2001 From: oosedus Date: Fri, 26 Jul 2024 20:40:51 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20securityConfig=20=EC=97=90=20api=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../likelion/MZConnent/config/SecurityConfig.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/likelion/MZConnent/config/SecurityConfig.java b/src/main/java/likelion/MZConnent/config/SecurityConfig.java index 819b894..9f34b74 100644 --- a/src/main/java/likelion/MZConnent/config/SecurityConfig.java +++ b/src/main/java/likelion/MZConnent/config/SecurityConfig.java @@ -26,16 +26,18 @@ public class SecurityConfig { //권한별 url private final String[] adminUrl = {"/admin/**"}; + // 아무나 접속 가능한 것 private final String[] permitAllUrl = {"/error", - "/api/auth/login", "/api/auth/logout", // 회원 - "/api/categories/culture", "/api/cultures", // 문화 - "/api/clubs", "/api/clubs/*/join", // 동아리 + "/api/auth/login", // 회원 + "/api/categories/culture", "/api/cultures", "/api/cultures/*", // 문화 "/api/reviews", // 후기 - "/api/clubs/*", + "/api/categories/region", "/api/clubs/list", + "/api/main", "/swagger", "/swagger-ui.html", "/swagger-ui/**", "/api-docs", "/api-docs/**", "/v3/api-docs/**", //swagger }; + // 로그인 안한 사용자만 접속 가능한 것 private final String[] anonymousUrl = { - "/api/auth/signup", "/api/categories/region", "/api/clubs/*", "/api/clubs/list" + "/api/auth/signup" };