Search in sources :

Example 1 with CallbackLogic

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);
}
Also used : CallbackLogic(org.pac4j.core.engine.CallbackLogic) J2EContext(org.pac4j.core.context.J2EContext) GetMapping(org.springframework.web.bind.annotation.GetMapping)

Aggregations

J2EContext (org.pac4j.core.context.J2EContext)1 CallbackLogic (org.pac4j.core.engine.CallbackLogic)1 GetMapping (org.springframework.web.bind.annotation.GetMapping)1