|  |  |  | 
|---|
|  |  |  | package doumeemes.config.shiro; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import doumeemes.core.model.ApiResponse; | 
|---|
|  |  |  | import com.alibaba.fastjson.JSON; | 
|---|
|  |  |  | import doumeemes.core.model.ApiResponse; | 
|---|
|  |  |  | import org.apache.shiro.web.filter.authc.FormAuthenticationFilter; | 
|---|
|  |  |  | import org.springframework.http.HttpStatus; | 
|---|
|  |  |  | import org.springframework.stereotype.Component; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.servlet.ServletRequest; | 
|---|
|  |  |  | import javax.servlet.ServletResponse; | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * Shiro认证过滤器,处理未认证情况的响应 | 
|---|
|  |  |  | * @author Eva.Caesar Liu | 
|---|
|  |  |  | * @date 2022/04/18 18:12 | 
|---|
|  |  |  | * @date 2023/04/17 12:11 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public class ShiroAuthFilter extends FormAuthenticationFilter { | 
|---|
|  |  |  |  | 
|---|