protected View buildRedirectViewBackToFlow(final String clientName, final HttpServletRequest request) throws Exception {
        val urlBuilder = new URIBuilder(configurationContext.getCasProperties().getServer().getLoginUrl());
        request.getParameterMap().forEach((name, v) -> {
            val value = request.getParameter(name);
            urlBuilder.addParameter(name, value);
        });
        urlBuilder.setParameter(Pac4jConstants.DEFAULT_CLIENT_NAME_PARAMETER, clientName);
        val url = urlBuilder.toString();
        LOGGER.debug("Received response from client [{}]; Redirecting to [{}]", clientName, url);
        return new RedirectView(url);
    }
Redirect response to flow. Receives the CAS, OAuth, OIDC, etc. callback response, adjust it to work with
the login webflow, and redirects the requests to the login webflow endpoint.

@param clientName the path-based parameter that provider the pac4j client name
@param request    the request
@param response   the response
@return the view
@throws Exception the exception
support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/controller/DefaultDelegatedAuthenticationNavigationController.java