@Override
    public ModelAndView build(final RegisteredService registeredService,
                              final String redirectUrl,
                              final Map<String, String> parameters) {
        return configurationContext
            .stream()
            .map(Unchecked.function(ctx -> {
                val token = buildJwtResponse(registeredService, parameters);
                val model = new LinkedHashMap<String, Object>();
                model.put("originalUrl", redirectUrl);
                model.put("parameters", Map.of("response", token));
                val mv = new ModelAndView(CasWebflowConstants.VIEW_ID_POST_RESPONSE, model);
                mv.setStatus(HttpStatusCode.valueOf(HttpStatus.OK.value()));
                LOGGER.debug("Redirecting to [{}] with model [{}]", mv.getViewName(), mv.getModel());
                return mv;
            }))
            .findFirst()
            .orElseThrow();
    }
This is {@link OidcResponseModeFormPostJwtBuilder}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/response/OidcResponseModeFormPostJwtBuilder.java