Message:
%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page import="org.osgi.framework.BundleContext" %> <%@ page import="org.osgi.framework.ServiceReference" %> <%@ page import="de.virtimo.bpc.api.service.CoreBundleService" %> <%@ page import="de.virtimo.bpc.api.exception.*" %> <%@ page import="de.virtimo.bpc.api.SystemException" %> <%@ page import="java.util.Map" %> <%@ page import="java.util.HashMap" %> <%@ page import="java.util.logging.Logger" %> <%@ page import="java.util.logging.Level" %> <% boolean bpcShowError = false; boolean bpcBackendProblem = false; boolean userFlowProviderError = false; try { BundleContext ctx = null; ServiceReference ref = null; try { ctx = (BundleContext) getServletContext().getAttribute("osgi-bundlecontext"); ref = ctx.getServiceReference(CoreBundleService.class.getName()); CoreBundleService coreBundleService = (CoreBundleService) ctx.getService(ref); // redirect the user to the login page, but only when: // - keycloak/oidc is the used identity provider // - and it is not a "login done callback" from the identity provider // - and there is no valid user session if (coreBundleService.isUserFlowIdentityProviderInUse() && !coreBundleService.isUserFlowIdentityProviderCallback(request)) { if (!coreBundleService.hasValidUserSession(request)) { String redirectUrl = coreBundleService.getUserFlowIdentityProviderLoginRedirectUrl(request); out.write(""); out.write("
"); out.write(""); out.write("