protected Optional<UserProfile> extractUserProfile(final WebContext webContext) {
        return new ProfileManager(webContext, configurationContext.getObject().getSessionStore()).getProfile();
    }
This is {@link BaseAccessTokenGrantRequestExtractor}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/ext/BaseAccessTokenGrantRequestExtractor.java