public static String removeOidcPromptFromAuthorizationRequest(final String url, final String prompt) {
        return FunctionUtils.doUnchecked(() -> {
            val uriBuilder = new URIBuilder(url);
            val newParams = uriBuilder.getQueryParams()
                .stream()
                .filter(p -> !OAuth20Constants.PROMPT.equals(p.getName()) || !p.getValue().equalsIgnoreCase(prompt))
                .collect(Collectors.toList());
            return uriBuilder
                .removeQuery()
                .addParameters(newParams)
                .build()
                .toASCIIString();
        });
    }
Remove oidc prompt from authorization request.

@param url    the url
@param prompt the prompt
@return the string
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcRequestSupport.java