private UserProfile verifyAndReturnAuthenticatedProfile(final ProfileManager manager, final JEEContext context) {
        val casProperties = getConfigurationContext().getCasProperties();
        return manager.getProfile()
            .orElseThrow(() -> new IllegalArgumentException("""
                CAS is unable to locate authentication profile for this request: %s. The authentication request is expected
                to have been verified with an authentication attempt, and yet there is no record of an authentication event.
                This issue is typically the result of CAS misconfiguration. Please examine your CAS setup and review your
                OIDC configuration. Your OIDC issuer is defined as %s, and your CAS server name is %s.
                """
                .stripIndent()
                .formatted(
                    context.getFullRequestURL(),
                    casProperties.getAuthn().getOidc().getCore().getIssuer(),
                    casProperties.getServer().getPrefix())));
    }
Handle request post.

@param request  the request
@param response the response
@return the model and view
@throws Throwable the throwable
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/endpoints/OAuth20AuthorizeEndpointController.java