提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.sys.core.auth.filter; |
懒 |
2 |
|
|
3 |
/** |
|
4 |
* 不需要身份验证的资源 |
|
5 |
* |
|
6 |
* @author chenglong |
|
7 |
* @Date 2020/3/1 16:19 |
|
8 |
*/ |
|
9 |
public class NoneAuthedResources { |
|
10 |
|
|
11 |
/** |
|
12 |
* 前端接口资源 |
|
13 |
*/ |
|
14 |
public static final String[] FRONTEND_RESOURCES = { |
|
15 |
"/assets/**", |
|
16 |
"/favicon.ico", |
|
17 |
"/activiti-editor/**" |
|
18 |
}; |
|
19 |
|
|
20 |
|
|
21 |
/** |
|
22 |
* 不要权限校验的后端接口资源 |
|
23 |
* <p> |
|
24 |
* ANT风格的接口正则表达式: |
|
25 |
* <p> |
|
26 |
* ? 匹配任何单字符<br/> |
|
27 |
* * 匹配0或者任意数量的 字符<br/> |
|
28 |
* ** 匹配0或者更多的 目录<br/> |
|
29 |
*/ |
|
30 |
public static final String[] BACKEND_RESOURCES = { |
|
31 |
|
|
32 |
//主页 |
|
33 |
"/", |
|
34 |
|
|
35 |
// 锁屏 |
|
36 |
"/system/lock", |
|
37 |
|
|
38 |
//获取验证码 |
|
39 |
"/kaptcha", |
|
40 |
|
|
41 |
//rest方式获取token入口 |
|
42 |
"/rest/login", |
|
43 |
|
|
44 |
//oauth登录的接口 |
|
45 |
"/oauth/render/*", |
|
46 |
"/oauth/callback/*", |
|
47 |
|
|
48 |
//单点登录接口 |
|
49 |
"/ssoLogin", |
|
50 |
"/sysTokenLogin", |
|
51 |
|
|
52 |
// 登录接口放开过滤 |
|
53 |
"/login", |
|
54 |
|
|
55 |
// session登录失效之后的跳转 |
|
56 |
"/global/sessionError", |
|
57 |
|
|
58 |
// 图片预览 头像 |
|
59 |
"/system/preview/*", |
|
60 |
|
|
61 |
// 错误页面的接口 |
|
62 |
"/error", |
|
63 |
"/global/error", |
|
64 |
|
|
65 |
// 测试多数据源的接口,可以去掉 |
|
66 |
"/tran/**", |
|
67 |
|
|
68 |
//获取租户列表的接口 |
|
69 |
"/tenantInfo/listTenants", |
|
70 |
"/productionOrdeInfo/**", |
|
71 |
"/equipmentInfo/**", |
|
72 |
"/workshopInfo/**", |
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
}; |
|
78 |
|
|
79 |
} |