use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class CasValidationConfiguration method v3ServiceValidateController.
@Autowired
@Bean
public V3ServiceValidateController v3ServiceValidateController(@Qualifier("argumentExtractor") final ArgumentExtractor argumentExtractor) {
final V3ServiceValidateController c = new V3ServiceValidateController();
c.setValidationSpecification(this.cas20WithoutProxyProtocolValidationSpecification);
c.setSuccessView(cas3ServiceSuccessView());
c.setFailureView(cas3ServiceFailureView);
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;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class CasValidationConfiguration method proxyValidateController.
@Autowired
@Bean
public ProxyValidateController proxyValidateController(@Qualifier("argumentExtractor") final ArgumentExtractor argumentExtractor) {
final ProxyValidateController c = new ProxyValidateController();
c.setValidationSpecification(cas20ProtocolValidationSpecification);
c.setSuccessView(cas3ServiceSuccessView());
c.setFailureView(cas3ServiceFailureView);
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;
}
use of org.springframework.beans.factory.annotation.Autowired 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;
}
use of org.springframework.beans.factory.annotation.Autowired in project pinpoint by naver.
the class HbaseTraceDaoV2 method setSpanMapperV2.
@Autowired
@Qualifier("spanMapperV2")
public void setSpanMapperV2(RowMapper<List<SpanBo>> spanMapperV2) {
final Logger logger = LoggerFactory.getLogger(spanMapperV2.getClass());
if (logger.isDebugEnabled()) {
spanMapperV2 = CellTraceMapper.wrap(spanMapperV2);
}
this.spanMapperV2 = spanMapperV2;
}
use of org.springframework.beans.factory.annotation.Autowired in project spring-security-oauth by spring-projects.
the class Application method init.
@Autowired
public void init(AuthenticationManagerBuilder auth) throws Exception {
User user = security.getUser();
// @formatter:off
auth.jdbcAuthentication().dataSource(dataSource).withUser(user.getName()).password(user.getPassword()).roles(user.getRole().toArray(new String[0]));
// @formatter:on
}
Aggregations