m_authorizationHandler.requestAuthorization(req, res, getLoginFormURL(req, res)); } catch (IOException ioe) { LOG.debug("Error calling authorization handler.", ioe);
/** * Returns an instance of the configured authorization handler.<p> * * @return an instance of the configured authorization handler */ public I_CmsAuthorizationHandler getAuthorizationHandler() { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_authorizationHandler)) { return new CmsDefaultAuthorizationHandler(); } try { I_CmsAuthorizationHandler authorizationHandler = (I_CmsAuthorizationHandler)Class.forName( m_authorizationHandler).newInstance(); if (LOG.isInfoEnabled()) { LOG.info( Messages.get().getBundle().key( Messages.INIT_AUTHORIZATION_HANDLER_CLASS_SUCCESS_1, m_authorizationHandler)); } authorizationHandler.setParameters(m_runtimeProperties); return authorizationHandler; } catch (Throwable t) { LOG.error( Messages.get().getBundle().key( Messages.INIT_AUTHORIZATION_HANDLER_CLASS_INVALID_1, m_authorizationHandler), t); return new CmsDefaultAuthorizationHandler(); } }
cms = m_authorizationHandler.initCmsObject(req, loginAction); if (cms != null) { return cms; m_authorizationHandler.requestAuthorization(req, res, getLoginFormURL(req, res));
return m_authorizationHandler.getLoginFormURL(loginFormURL, params, callbackURL);
cms = m_authorizationHandler.initCmsObject(req, loginAction); if (cms != null) { return cms; m_authorizationHandler.requestAuthorization(req, res, getLoginFormURL(req, res));
return m_authorizationHandler.getLoginFormURL(loginFormURL, params, callbackURL);
public boolean handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws IOException { if (shouldShowLogin() && !isLoginUIRequest(request)) { String link = OpenCms.getLinkManager().substituteLinkForUnknownTarget( ((CmsUIServlet)getCurrent()).getCmsObject(), CmsWorkplaceLoginHandler.LOGIN_FORM); String requestedUri = ((HttpServletRequest)request).getRequestURI(); if (!requestedUri.endsWith(OpenCms.getSystemInfo().getWorkplaceContext())) { link += "?" + CmsWorkplaceManager.PARAM_LOGIN_REQUESTED_RESOURCE + URLEncoder.encode(requestedUri, "UTF-8"); } OpenCms.getAuthorizationHandler().requestAuthorization( (HttpServletRequest)request, (HttpServletResponse)response, link); return true; } return false; } };
/** * Returns an instance of the configured authorization handler.<p> * * @return an instance of the configured authorization handler */ public I_CmsAuthorizationHandler getAuthorizationHandler() { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_authorizationHandler)) { return new CmsDefaultAuthorizationHandler(); } try { I_CmsAuthorizationHandler authorizationHandler = (I_CmsAuthorizationHandler)Class.forName( m_authorizationHandler).newInstance(); if (LOG.isInfoEnabled()) { LOG.info(Messages.get().getBundle().key( Messages.INIT_AUTHORIZATION_HANDLER_CLASS_SUCCESS_1, m_authorizationHandler)); } authorizationHandler.setParameters(m_runtimeProperties); return authorizationHandler; } catch (Throwable t) { LOG.error(Messages.get().getBundle().key( Messages.INIT_AUTHORIZATION_HANDLER_CLASS_INVALID_1, m_authorizationHandler), t); return new CmsDefaultAuthorizationHandler(); } }
m_authorizationHandler.requestAuthorization(req, res, getLoginFormURL(req, res)); } catch (IOException ioe) {