<%@ page import="com.appiancorp.common.config.ApplicationContextHolder"%> <%@ page import="com.appiancorp.security.auth.rememberme.RememberMeSettings"%> <%@ page import="com.appiancorp.security.auth.SpringSecurityContextHelper"%> <%@ page import="com.appiancorp.suite.cfg.CustomBrandingService"%> <%@ page import="com.appiancorp.suite.cfg.CustomBrandingServiceImplHelper"%> <%@ page import="com.appiancorp.suiteapi.common.ServiceLocator"%> <%@ page import="com.appiancorp.type.cdt.CustomBranding"%> <%@ page import="org.springframework.security.core.context.SecurityContext"%> <%@ taglib uri="/WEB-INF/appian-asi.tld" prefix="asi" %> <% final SecurityContext origSpringSecCtx = SpringSecurityContextHelper.getSpringSecurityContext(); CustomBranding b; try { SpringSecurityContextHelper.setSpringSecurityContextLazy(ServiceLocator.ADMIN_USERNAME); b = ApplicationContextHolder.getBean(CustomBrandingService.class).getCustomBranding(); request.setAttribute("loginCss",CustomBrandingServiceImplHelper.getLoginCss(b)); } catch (Exception e) { if (e instanceof RuntimeException) { throw (RuntimeException)e; } else { throw new RuntimeException(e); } } finally { SpringSecurityContextHelper.setSpringSecurityContext(origSpringSecCtx); } %>