| | |
| | | public final static String REFRESH_TOKEN_KEY = "refresh_token"; |
| | | |
| | | 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()) { |