From 7d5176a243827f0f4c45c47789468f42349b5a59 Mon Sep 17 00:00:00 2001 From: ronger Date: Sun, 30 Oct 2022 01:08:40 +0800 Subject: [PATCH] :art: jwt + shiro --- src/main/java/com/rymcu/forest/config/ShiroConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/rymcu/forest/config/ShiroConfig.java b/src/main/java/com/rymcu/forest/config/ShiroConfig.java index bdab6d4..9cc7aa6 100644 --- a/src/main/java/com/rymcu/forest/config/ShiroConfig.java +++ b/src/main/java/com/rymcu/forest/config/ShiroConfig.java @@ -41,6 +41,9 @@ public class ShiroConfig { filterChainDefinitionMap.put("/api/v1/rule/currency/**", "anon"); filterChainDefinitionMap.put("/api/v1/lucene/**", "anon"); filterChainDefinitionMap.put("/api/v1/open-data/**", "anon"); + filterChainDefinitionMap.put("/api/v1/auth/login/**", "anon"); + filterChainDefinitionMap.put("/api/v1/auth/logout/**", "anon"); + filterChainDefinitionMap.put("/api/v1/auth/refresh-token/**", "anon"); filterChainDefinitionMap.put("/**", "jwt"); shiroFilterFactoryBean.setFilterChainDefinitionMap(filterChainDefinitionMap);