public static void putAuthentication(final Ticket ticket, final RequestContext requestContext) {
        if (ticket instanceof final AuthenticationAwareTicket aat) {
            putAuthentication(aat.getAuthentication(), requestContext);
        }
    }
Put authentication.

@param ticket         the ticket
@param requestContext the request context
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java