use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class CasWebflowContextConfiguration method casWebflowExecutionPlan.
@Autowired
@Bean
public CasWebflowExecutionPlan casWebflowExecutionPlan(final List<CasWebflowExecutionPlanConfigurer> configurers) {
final DefaultCasWebflowExecutionPlan plan = new DefaultCasWebflowExecutionPlan();
configurers.forEach(c -> c.configureWebflowExecutionPlan(plan));
plan.execute();
return plan;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class CasCoreLogoutConfiguration method logoutExecutionPlan.
@ConditionalOnMissingBean(name = "logoutExecutionPlan")
@Autowired
@Bean
public LogoutExecutionPlan logoutExecutionPlan(final List<LogoutExecutionPlanConfigurer> configurers) {
final DefaultLogoutExecutionPlan plan = new DefaultLogoutExecutionPlan();
configurers.forEach(c -> {
final String name = StringUtils.removePattern(c.getClass().getSimpleName(), "\\$.+");
LOGGER.debug("Configuring logout execution plan [{}]", name);
c.configureLogoutExecutionPlan(plan);
});
return plan;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class OpenIdConfiguration method openIdPostUrlHandlerMapping.
@Autowired
@Bean
public OpenIdPostUrlHandlerMapping openIdPostUrlHandlerMapping(@Qualifier("argumentExtractor") final ArgumentExtractor argumentExtractor) {
final OpenIdValidateController c = new OpenIdValidateController(cas20WithoutProxyProtocolValidationSpecification, authenticationSystemSupport, servicesManager, centralAuthenticationService, proxy20Handler, argumentExtractor, multifactorTriggerSelectionStrategy, authenticationContextValidator, cas3ServiceJsonView, casOpenIdServiceSuccessView, casOpenIdServiceFailureView, casProperties.getAuthn().getMfa().getAuthenticationContextAttribute(), serverManager(), validationAuthorizers, casProperties.getSso().isRenewAuthnEnabled());
final DelegatingController controller = new DelegatingController();
controller.setDelegates(CollectionUtils.wrapList(smartOpenIdAssociationController(), c));
final OpenIdPostUrlHandlerMapping m = new OpenIdPostUrlHandlerMapping();
m.setOrder(1);
final Properties mappings = new Properties();
mappings.put("/login", controller);
m.setMappings(mappings);
return m;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class CasRestConfiguration method restHttpRequestCredentialFactory.
@Autowired
@Bean
public RestHttpRequestCredentialFactory restHttpRequestCredentialFactory(final List<RestHttpRequestCredentialFactoryConfigurer> configurers) {
final ChainingRestHttpRequestCredentialFactory factory = new ChainingRestHttpRequestCredentialFactory();
configurers.forEach(c -> c.configureCredentialFactory(factory));
return factory;
}
use of org.springframework.beans.factory.annotation.Autowired in project cas by apereo.
the class SamlIdPJpaMetadataConfiguration method transactionManagerSamlMetadata.
@Autowired
@Bean
public PlatformTransactionManager transactionManagerSamlMetadata(@Qualifier("samlMetadataEntityManagerFactory") final EntityManagerFactory emf) {
final JpaTransactionManager mgmr = new JpaTransactionManager();
mgmr.setEntityManagerFactory(emf);
return mgmr;
}
Aggregations