public static Principal getPrincipalFromRequestContext(final RequestContext requestContext) {
        return requestContext.getFlowScope().get("principal", Principal.class);
    }
Gets principal from request context.

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