use of org.apereo.cas.couchdb.gauth.credential.GoogleAuthenticatorAccountCouchDbRepository in project cas by apereo.
the class GoogleAuthenticatorCouchDbConfiguration method couchDbOneTimeTokenAccountRepository.
@ConditionalOnMissingBean(name = "couchDbOneTimeTokenAccountRepository")
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public GoogleAuthenticatorAccountCouchDbRepository couchDbOneTimeTokenAccountRepository(@Qualifier("oneTimeTokenAccountCouchDbFactory") final CouchDbConnectorFactory oneTimeTokenCouchDbFactory, final CasConfigurationProperties casProperties) {
val repository = new GoogleAuthenticatorAccountCouchDbRepository(oneTimeTokenCouchDbFactory.getCouchDbConnector(), casProperties.getAuthn().getMfa().getGauth().getCouchDb().isCreateIfNotExists());
repository.initStandardDesignDocument();
return repository;
}
Aggregations