Saiku3.15去除License与主界面

  1. 资源下载

  2. 修改org.saiku.web.service.SessionService.java

public Map<String, Object> login(HttpServletRequest req, String username, String password ) throws LicenseException {
//		Object sl = null;
//		String notice = null;
		HttpSession session = ((HttpServletRequest)req).getSession(true);
		session.getId();
		sessionRepo.setSession(session);
		
//		try {
//			sl = l.getLicense();
//		} catch (Exception e) {
//			log.debug("Could not process license", e);
//			throw new LicenseException("Error fetching license. Get a free license from http://licensing.meteorite.bi. You can upload it at /upload.html");
//		}

//		if (sl != null) {
		if (true) {

//			try {
//				l.validateLicense();
//			} catch (RepositoryException | IOException | ClassNotFoundException e) {
//				log.debug("Repository Exception, couldn't get license", e);
//				throw new LicenseException("Error fetching license. Please check your logs.");
//			}

			//				if (l.getLicense() instanceof SaikuLicense2) {
			if (true) {
			    if (authenticationManager != null) {
			        authenticate(req, username, password);
			    }
			    if (SecurityContextHolder.getContext() != null
			        && SecurityContextHolder.getContext().getAuthentication() != null) {
			        Authentication auth = SecurityContextHolder.getContext().getAuthentication();

			        if (authorisationPredicate.isAuthorised(auth)) {
			            Object p = auth.getPrincipal();
			            createSession(auth, username, password);
			            return sessionHolder.get(p);
			        } else {
			            log.in
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值