protected ModelAndView redirectToCallbackRedirectUrl(final ProfileManager manager,
                                                         final OAuthRegisteredService registeredService,
                                                         final JEEContext context) throws Throwable {
        val profile = verifyAndReturnAuthenticatedProfile(manager, context);
        val service = getConfigurationContext().getAuthenticationBuilder()
            .buildService(registeredService, context, false);
        LOGGER.trace("Created service [{}] based on registered service [{}]", service, registeredService);

        val authentication = getConfigurationContext().getAuthenticationBuilder()
            .build(profile, registeredService, context, service);
        LOGGER.trace("Created OAuth authentication [{}] for service [{}]", authentication, service);

        try {
            val audit = AuditableContext.builder()
                .service(service)
                .registeredService(registeredService)
                .principal(authentication.getPrincipal())
                .build();
            val accessResult = getConfigurationContext().getRegisteredServiceAccessStrategyEnforcer().execute(audit);
            accessResult.throwExceptionIfNeeded();

            val modelAndView = buildAuthorizationForRequest(registeredService, context, service, authentication);
            return Optional.ofNullable(modelAndView)
                .filter(ModelAndView::hasView)
                .orElseGet(() -> {
                    LOGGER.trace("No explicit view was defined as part of the authorization response");
                    return null;
                });
        } catch (final Throwable e) {
            LoggingUtils.error(LOGGER, e);
            return OAuth20Utils.produceUnauthorizedErrorView(HttpStatus.FORBIDDEN);
        }
    }
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