protected SecurityContext buildAuthenticationContext(final RequestContext requestContext) {
        val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext);
        val authentication = WebUtils.getAuthentication(requestContext);
        val principal = resolvePrincipal(authentication.getPrincipal(), requestContext);
        return SecurityContextUtils.createSecurityContext(principal, request);
    }
This is {@link PopulateSpringSecurityContextAction}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-actions-core/src/main/java/org/apereo/cas/web/flow/PopulateSpringSecurityContextAction.java