@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public PlatformTransactionManager jdbcAcceptableUsagePolicyTransactionManager(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("acceptableUsagePolicyDataSource")
        final DataSource acceptableUsagePolicyDataSource) {
        return BeanSupplier.of(PlatformTransactionManager.class)
            .when(AcceptableUsagePolicyRepository.CONDITION_AUP_ENABLED.given(applicationContext.getEnvironment()))
            .supply(() -> new DataSourceTransactionManager(acceptableUsagePolicyDataSource))
            .otherwise(PseudoTransactionManager::new)
            .get();
    }
This is {@link CasAcceptableUsagePolicyJdbcAutoConfiguration} that stores AUP decisions in a mongo database.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-aup-jdbc/src/main/java/org/apereo/cas/config/CasAcceptableUsagePolicyJdbcAutoConfiguration.java