Search in sources :

Example 1 with MongoDbYubiKeyAccountRegistry

use of org.apereo.cas.adaptors.yubikey.dao.MongoDbYubiKeyAccountRegistry in project cas by apereo.

the class MongoDbYubiKeyConfiguration method yubiKeyAccountRegistry.

@RefreshScope
@Bean
public YubiKeyAccountRegistry yubiKeyAccountRegistry() {
    final YubiKeyMultifactorProperties yubi = casProperties.getAuthn().getMfa().getYubikey();
    final MongoDbYubiKeyAccountRegistry registry = new MongoDbYubiKeyAccountRegistry(yubiKeyAccountValidator, mongoYubiKeyTemplate(), yubi.getMongo().getCollection());
    registry.setCipherExecutor(this.yubikeyAccountCipherExecutor);
    return registry;
}
Also used : MongoDbYubiKeyAccountRegistry(org.apereo.cas.adaptors.yubikey.dao.MongoDbYubiKeyAccountRegistry) YubiKeyMultifactorProperties(org.apereo.cas.configuration.model.support.mfa.YubiKeyMultifactorProperties) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Bean(org.springframework.context.annotation.Bean)

Aggregations

MongoDbYubiKeyAccountRegistry (org.apereo.cas.adaptors.yubikey.dao.MongoDbYubiKeyAccountRegistry)1 YubiKeyMultifactorProperties (org.apereo.cas.configuration.model.support.mfa.YubiKeyMultifactorProperties)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1