protected static Authentication getAuthenticationFrom(final SingleSignOnParticipationRequest ssoRequest) {
        return ssoRequest.getRequestContext().map(WebUtils::getAuthentication)
            .orElseGet(() -> ssoRequest.getAttributeValue(Authentication.class.getName(), Authentication.class));
    }
Gets authentication from.

@param ssoRequest the sso request
@return the authentication from
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/BaseSingleSignOnParticipationStrategy.java