Commit 8506d984004f1436d721a7f98634d8478aa09e8c

Authored by zhangdaiscott
1 parent 7ab88181

解决2.3严重权限问题: issues/1740 JAVA访问权限控制 无法使用的问题

jeecg-boot/jeecg-boot-base-common/src/main/java/org/jeecg/common/constant/CommonConstant.java
... ... @@ -72,7 +72,7 @@ public interface CommonConstant {
72 72 public static final Integer SC_JEECG_NO_AUTHZ=510;
73 73  
74 74 /** 登录用户Shiro权限缓存KEY前缀 */
75   - public static String PREFIX_USER_SHIRO_CACHE = "shiro:cache:org.jeecg.modules.shiro.authc.ShiroRealm.authorizationCache:";
  75 + public static String PREFIX_USER_SHIRO_CACHE = "shiro:cache:org.jeecg.config.shiro.ShiroRealm.authorizationCache:";
76 76 /** 登录用户Token令牌缓存KEY前缀 */
77 77 public static final String PREFIX_USER_TOKEN = "prefix_user_token_";
78 78 /** Token缓存时间:3600秒即一小时 */
... ... @@ -300,4 +300,9 @@ public interface CommonConstant {
300 300 * 微服务读取配置文件属性 服务地址
301 301 */
302 302 public final static String CLOUD_SERVER_KEY = "spring.cloud.nacos.discovery.server-addr";
  303 +
  304 + /**
  305 + * 第三方登录 验证密码/创建用户 都需要设置一个操作码 防止被恶意调用
  306 + */
  307 + public final static String THIRD_LOGIN_CODE = "third_login_code";
303 308 }
... ...