@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public ConsentRepository consentRepository(
        final CasConfigurationProperties casProperties) {
        return new RestfulConsentRepository(casProperties.getConsent().getRest());
    }
This is {@link CasConsentRestAutoConfiguration}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-consent-rest/src/main/java/org/apereo/cas/config/CasConsentRestAutoConfiguration.java