@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 url = UriComponentsBuilder.fromUriString(redirectUrl).fragment("response=" + token).build().toUriString();
                LOGGER.debug("Redirecting to [{}]", url);
                return new ModelAndView(new RedirectView(url));
            }))
            .findFirst()
            .orElseThrow();
    }
This is {@link OidcResponseModeFragmentJwtBuilder}.

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