@Bean
    @ConditionalOnMissingBean(name = "surrogateAuthenticationJdbcDataSource")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public DataSource surrogateAuthenticationJdbcDataSource(final CasConfigurationProperties casProperties) {
        val su = casProperties.getAuthn().getSurrogate();
        return JpaBeans.newDataSource(su.getJdbc());
    }
This is {@link CasSurrogateJdbcAuthenticationAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-surrogate-authentication-jdbc/src/main/java/org/apereo/cas/config/CasSurrogateJdbcAuthenticationAutoConfiguration.java