Search in sources :

Example 1 with ServiceValidateController

use of org.apereo.cas.web.ServiceValidateController in project cas by apereo.

the class CasValidationConfiguration method serviceValidateController.

@Autowired
@Bean
public ServiceValidateController serviceValidateController(@Qualifier("argumentExtractor") final ArgumentExtractor argumentExtractor) {
    final ServiceValidateController c = new ServiceValidateController();
    c.setValidationSpecification(this.cas20WithoutProxyProtocolValidationSpecification);
    c.setSuccessView(cas2ServiceSuccessView());
    c.setFailureView(cas2ServiceFailureView);
    c.setProxyHandler(proxy20Handler);
    c.setAuthenticationSystemSupport(authenticationSystemSupport);
    c.setServicesManager(servicesManager);
    c.setCentralAuthenticationService(centralAuthenticationService);
    c.setArgumentExtractor(argumentExtractor);
    c.setMultifactorTriggerSelectionStrategy(multifactorTriggerSelectionStrategy);
    c.setAuthenticationContextValidator(authenticationContextValidator);
    c.setJsonView(cas3ServiceJsonView());
    c.setAuthnContextAttribute(casProperties.getAuthn().getMfa().getAuthenticationContextAttribute());
    return c;
}
Also used : V3ServiceValidateController(org.apereo.cas.web.v3.V3ServiceValidateController) ServiceValidateController(org.apereo.cas.web.ServiceValidateController) Autowired(org.springframework.beans.factory.annotation.Autowired) Bean(org.springframework.context.annotation.Bean)

Aggregations

ServiceValidateController (org.apereo.cas.web.ServiceValidateController)1 V3ServiceValidateController (org.apereo.cas.web.v3.V3ServiceValidateController)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 Bean (org.springframework.context.annotation.Bean)1