Search in sources :

Example 1 with ChainingRestHttpRequestCredentialFactory

use of org.apereo.cas.rest.factory.ChainingRestHttpRequestCredentialFactory 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;
}
Also used : ChainingRestHttpRequestCredentialFactory(org.apereo.cas.rest.factory.ChainingRestHttpRequestCredentialFactory) Autowired(org.springframework.beans.factory.annotation.Autowired) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

ChainingRestHttpRequestCredentialFactory (org.apereo.cas.rest.factory.ChainingRestHttpRequestCredentialFactory)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1