use of org.pac4j.core.engine.CallbackLogic in project cas by apereo.
the class CasConsentReviewController method callback.
/**
* Endpoint for Cas Client Callback.
*
* @param request the request
* @param response the response
*/
@GetMapping("/callback")
public void callback(final HttpServletRequest request, final HttpServletResponse response) {
LOGGER.debug("Callback endpoint hit...");
final CallbackLogic logic = this.pac4jConfig.getCallbackLogic();
final J2EContext context = Pac4jUtils.getPac4jJ2EContext(request, response);
final String defaultUrl = this.casProperties.getServer().getPrefix().concat("/consentReview");
logic.perform(context, this.pac4jConfig, J2ENopHttpActionAdapter.INSTANCE, defaultUrl, false, false, false, null);
}
Aggregations