@Bean
        @ConditionalOnMissingBean(name = "oidcCsrfTokenRepository")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public CsrfTokenRepository oidcCsrfTokenRepository(final CasConfigurationProperties casProperties) {
            val repository = new CookieCsrfTokenRepository();
            repository.setHeaderName("X-CSRF-TOKEN");
            return repository;
        }
This is {@link OidcEndpointsConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oidc/src/main/java/org/apereo/cas/config/OidcEndpointsConfiguration.java