Search in sources :

Example 1 with CouchbasePersonAttributeDao

use of org.apereo.cas.persondir.support.CouchbasePersonAttributeDao in project cas by apereo.

the class CouchbaseAuthenticationConfiguration method couchbasePersonAttributeDao.

@ConditionalOnMissingBean(name = "couchbasePersonAttributeDao")
@Bean
public IPersonAttributeDao couchbasePersonAttributeDao() {
    final CouchbasePrincipalAttributesProperties couchbase = casProperties.getAuthn().getAttributeRepository().getCouchbase();
    final CouchbasePersonAttributeDao cb = new CouchbasePersonAttributeDao(couchbase, authenticationCouchbaseClientFactory());
    cb.setOrder(couchbase.getOrder());
    return cb;
}
Also used : CouchbasePersonAttributeDao(org.apereo.cas.persondir.support.CouchbasePersonAttributeDao) CouchbasePrincipalAttributesProperties(org.apereo.cas.configuration.model.core.authentication.CouchbasePrincipalAttributesProperties) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

CouchbasePrincipalAttributesProperties (org.apereo.cas.configuration.model.core.authentication.CouchbasePrincipalAttributesProperties)1 CouchbasePersonAttributeDao (org.apereo.cas.persondir.support.CouchbasePersonAttributeDao)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1