public static void putDelegatedAuthenticationLogoutRequestTicket(final RequestContext requestContext,
                                                                     final Ticket ticket) {
        if (ticket == null) {
            requestContext.getFlowScope().remove(FLOW_SCOPE_ATTR_DELEGATED_AUTHN_PROVIDER_PRIMARY);
        } else {
            requestContext.getFlowScope().put(FLOW_SCOPE_ATTR_DELEGATED_AUTHN_PROVIDER_PRIMARY, ticket);
        }
    }
Put delegated authentication logout request ticket.

@param requestContext         the request context
@param ticket the transient session ticket
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/web/flow/DelegationWebflowUtils.java