use of org.apereo.cas.authentication.principal.ResponseBuilder in project cas by apereo.
the class RedirectToServiceAction method doExecute.
@Override
protected Event doExecute(final RequestContext requestContext) {
final WebApplicationService service = WebUtils.getService(requestContext);
LOGGER.debug("Located service [{}] from the context", service);
final Authentication auth = WebUtils.getAuthentication(requestContext);
LOGGER.debug("Located authentication [{}] from the context", auth);
final String serviceTicketId = WebUtils.getServiceTicketFromRequestScope(requestContext);
LOGGER.debug("Located service ticket [{}] from the context", serviceTicketId);
final ResponseBuilder builder = responseBuilderLocator.locate(service);
LOGGER.debug("Located service response builder [{}] for [{}]", builder, service);
final Response response = builder.build(service, serviceTicketId, auth);
LOGGER.debug("Built response [{}] for [{}]", response, service);
return finalizeResponseEvent(requestContext, service, response);
}
Aggregations