| | |
| | | public final static String PASSWORD_KEY = "password"; |
| | | public final static String GRANT_TYPE_KEY = "grant_type"; |
| | | public final static String REFRESH_TOKEN_KEY = "refresh_token"; |
| | | public final static String USER_LOCK = "当前登录用户已被停用,请联系管理解封账号。"; |
| | | |
| | | private static BladeTenantProperties tenantProperties; |
| | | @Autowired |
| | | private static NacosConfigCache nacosConfigCache; |
| | | |
| | | /** |
| | | * 获取租户配置 |
| | |
| | | if (tenant == null || tenant.getId() == null) { |
| | | throw new UserDeniedAuthorizationException(TokenUtil.USER_HAS_NO_TENANT); |
| | | } |
| | | if (StringUtil.equalsIgnoreCase(tenant.getTenantId(), nacosConfigCache.getAdminUserInfo().getTenantId())) { |
| | | if (StringUtil.equalsIgnoreCase(tenant.getTenantId(), NacosConfigCache.getAdminUserInfo().getTenantId())) { |
| | | return false; |
| | | } |
| | | if (getTenantProperties().getLicense()) { |